Commit | Line | Data |
---|---|---|
c223da83 JA |
1 | #ifndef FIO_TIME_H |
2 | #define FIO_TIME_H | |
3 | ||
356014ff JA |
4 | #include "lib/types.h" |
5 | ||
48b944c4 | 6 | struct thread_data; |
d6bb626e VF |
7 | extern uint64_t ntime_since(const struct timespec *, const struct timespec *); |
8 | extern uint64_t utime_since(const struct timespec *, const struct timespec *); | |
8b6a404c VF |
9 | extern uint64_t utime_since_now(const struct timespec *); |
10 | extern uint64_t mtime_since(const struct timespec *, const struct timespec *); | |
11 | extern uint64_t mtime_since_now(const struct timespec *); | |
12 | extern uint64_t mtime_since_tv(const struct timeval *, const struct timeval *); | |
13 | extern uint64_t time_since_now(const struct timespec *); | |
8b22c785 | 14 | extern uint64_t time_since_genesis(void); |
aa60bc58 | 15 | extern uint64_t mtime_since_genesis(void); |
0de5b26f | 16 | extern uint64_t utime_since_genesis(void); |
9cc80b6d JA |
17 | extern uint64_t usec_spin(unsigned int); |
18 | extern uint64_t usec_sleep(struct thread_data *, unsigned long); | |
8b6a404c | 19 | extern void fill_start_time(struct timespec *); |
c223da83 | 20 | extern void set_genesis_time(void); |
356014ff JA |
21 | extern bool ramp_time_over(struct thread_data *); |
22 | extern bool in_ramp_time(struct thread_data *); | |
c223da83 | 23 | extern void fio_time_init(void); |
8b6a404c | 24 | extern void timespec_add_msec(struct timespec *, unsigned int); |
3aea75b1 | 25 | extern void set_epoch_time(struct thread_data *, int); |
c223da83 JA |
26 | |
27 | #endif |