blob: f0ad20c8a2927437cc49eb2a4adf9fb28f4b247f [file] [log] [blame]
Jens Axboea7346812012-02-09 15:02:39 +01001#ifndef FIO_GETTIME_H
2#define FIO_GETTIME_H
3
4/*
5 * Clock sources
6 */
7enum fio_cs {
8 CS_GTOD = 1,
9 CS_CGETTIME,
10 CS_CPUCLOCK,
Jens Axboe01423ea2012-12-14 20:37:06 +010011 CS_INVAL,
Jens Axboea7346812012-02-09 15:02:39 +010012};
13
14extern void fio_gettime(struct timeval *, void *);
15extern void fio_gtod_init(void);
16extern void fio_clock_init(void);
17extern int fio_start_gtod_thread(void);
Jens Axboe7d11f872012-12-17 12:03:29 +010018extern int fio_monotonic_clocktest(void);
Jens Axboe5d879392012-12-18 09:12:27 +010019extern void fio_local_clock_init(int);
Jens Axboea7346812012-02-09 15:02:39 +010020
Jens Axboe39ab7da2012-11-06 22:10:43 +010021extern struct timeval *fio_tv;
22
Jens Axboea7346812012-02-09 15:02:39 +010023#endif