18 extern void fio_gettime(struct timespec *, void *);
19 extern void fio_gtod_init(void);
20 extern void fio_clock_init(void);
21 extern int fio_start_gtod_thread(void);
22 extern int fio_monotonic_clocktest(int debug);
23 extern void fio_local_clock_init(void);
25 extern struct timespec *fio_ts;
27 static inline int fio_gettime_offload(struct timespec *ts)
36 last_sec = ts->tv_sec = fio_ts->tv_sec;
37 ts->tv_nsec = fio_ts->tv_nsec;
38 } while (fio_ts->tv_sec != last_sec);
43 extern void fio_gtod_set_cpu(unsigned int cpu);