X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;ds=sidebyside;f=idletime.h;h=6c1161a7c258d07efb0b41f1be7b9f2ef8d7e53c;hb=182cab24328ab22a5b76ba1edac2c801b83aeffb;hp=84c1fbbe79a8a293103ce19f1450c9f17847a743;hpb=a666cab8ed3d2a2fa782be345425a2e88734a007;p=fio.git diff --git a/idletime.h b/idletime.h index 84c1fbbe..6c1161a7 100644 --- a/idletime.h +++ b/idletime.h @@ -1,8 +1,9 @@ #ifndef FIO_IDLETIME_H #define FIO_IDLETIME_H -#include "fio.h" -#include "lib/output_buffer.h" +#include +#include +#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;