This partly revert 97bb54c9606c(add __load_ioengine() to separate ioengine loading...
[fio.git] / idletime.h
index 84c1fbbe79a8a293103ce19f1450c9f17847a743..6c1161a7c258d07efb0b41f1be7b9f2ef8d7e53c 100644 (file)
@@ -1,8 +1,9 @@
 #ifndef FIO_IDLETIME_H
 #define FIO_IDLETIME_H
 
-#include "fio.h"
-#include "lib/output_buffer.h"
+#include <sys/time.h>
+#include <sys/types.h>
+#include "os/os.h"
 
 #define CALIBRATE_RUNS  10
 #define CALIBRATE_SCALE 1000
@@ -26,8 +27,8 @@ struct idle_prof_thread {
        pthread_t thread;
        int cpu;
        int state;
-       struct timeval tps;
-       struct timeval tpe;
+       struct timespec tps;
+       struct timespec tpe;
        double cali_time; /* microseconds to finish a unit work */
        double loops;
        double idleness;