21 #ifndef Minisat_System_h
22 #define Minisat_System_h
24 #if defined(__linux__)
25 #include <fpu_control.h>
34 static inline double cpuTime(
void);
43 #if defined(_MSC_VER) || defined(__MINGW32__)
46 static inline double Minisat::cpuTime(
void) {
return (
double)clock() / CLOCKS_PER_SEC; }
50 #include <sys/resource.h>
55 getrusage(RUSAGE_SELF, &ru);
56 return (
double)ru.ru_utime.tv_sec + (double)ru.ru_utime.tv_usec / 1000000; }
static double cpuTime(void)