Commit | Line | Data |
---|---|---|
c223da83 JA |
1 | #ifndef FIO_TIME_H |
2 | #define FIO_TIME_H | |
3 | ||
4 | /* | |
5 | * Clock sources | |
6 | */ | |
7 | enum fio_cs { | |
8 | CS_GTOD = 1, | |
9 | CS_CGETTIME, | |
10 | CS_CPUCLOCK, | |
11 | }; | |
12 | ||
13 | extern unsigned long long utime_since(struct timeval *, struct timeval *); | |
14 | extern unsigned long long utime_since_now(struct timeval *); | |
15 | extern unsigned long mtime_since(struct timeval *, struct timeval *); | |
16 | extern unsigned long mtime_since_now(struct timeval *); | |
17 | extern unsigned long time_since_now(struct timeval *); | |
18 | extern unsigned long mtime_since_genesis(void); | |
19 | extern void usec_spin(unsigned int); | |
20 | extern void usec_sleep(struct thread_data *, unsigned long); | |
21 | extern void fill_start_time(struct timeval *); | |
22 | extern void fio_gettime(struct timeval *, void *); | |
23 | extern void fio_gtod_init(void); | |
24 | extern void fio_clock_init(void); | |
25 | extern void fio_gtod_update(void); | |
26 | extern void set_genesis_time(void); | |
27 | extern int ramp_time_over(struct thread_data *); | |
28 | extern int in_ramp_time(struct thread_data *); | |
29 | extern unsigned long long genesis_cycles; | |
30 | extern void fio_time_init(void); | |
31 | ||
32 | #endif |