- fio_gettime(&tv_s, NULL);
-
-#ifdef FIO_HAVE_CLOCK_MONOTONIC
- clock_gettime(CLOCK_MONOTONIC, &t);
-#else
- clock_gettime(CLOCK_REALTIME, &t);
-#endif
- t.tv_sec += seconds;
+ gettimeofday(&tv_s, NULL);
+ t.tv_sec = tv_s.tv_sec + seconds;
+ t.tv_nsec = tv_s.tv_usec * 1000;