Jens Axboe | a734681 | 2012-02-09 15:02:39 +0100 | [diff] [blame] | 1 | #ifndef FIO_GETTIME_H |
| 2 | #define FIO_GETTIME_H |
| 3 | |
| 4 | /* |
| 5 | * Clock sources |
| 6 | */ |
| 7 | enum fio_cs { |
| 8 | CS_GTOD = 1, |
| 9 | CS_CGETTIME, |
| 10 | CS_CPUCLOCK, |
Jens Axboe | 01423ea | 2012-12-14 20:37:06 +0100 | [diff] [blame] | 11 | CS_INVAL, |
Jens Axboe | a734681 | 2012-02-09 15:02:39 +0100 | [diff] [blame] | 12 | }; |
| 13 | |
| 14 | extern void fio_gettime(struct timeval *, void *); |
| 15 | extern void fio_gtod_init(void); |
| 16 | extern void fio_clock_init(void); |
| 17 | extern int fio_start_gtod_thread(void); |
Jens Axboe | 7d11f87 | 2012-12-17 12:03:29 +0100 | [diff] [blame] | 18 | extern int fio_monotonic_clocktest(void); |
Jens Axboe | 5d87939 | 2012-12-18 09:12:27 +0100 | [diff] [blame] | 19 | extern void fio_local_clock_init(int); |
Jens Axboe | a734681 | 2012-02-09 15:02:39 +0100 | [diff] [blame] | 20 | |
Jens Axboe | 39ab7da | 2012-11-06 22:10:43 +0100 | [diff] [blame] | 21 | extern struct timeval *fio_tv; |
| 22 | |
Jens Axboe | a734681 | 2012-02-09 15:02:39 +0100 | [diff] [blame] | 23 | #endif |