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