Jens Axboe | c223da8 | 2010-03-24 13:23:53 +0100 | [diff] [blame] | 1 | #ifndef FIO_TIME_H |
| 2 | #define FIO_TIME_H |
| 3 | |
Jens Axboe | aa60bc5 | 2013-01-04 13:24:52 +0100 | [diff] [blame] | 4 | extern uint64_t utime_since(struct timeval *, struct timeval *); |
| 5 | extern uint64_t utime_since_now(struct timeval *); |
| 6 | extern uint64_t mtime_since(struct timeval *, struct timeval *); |
| 7 | extern uint64_t mtime_since_now(struct timeval *); |
| 8 | extern uint64_t time_since_now(struct timeval *); |
| 9 | extern uint64_t mtime_since_genesis(void); |
Jens Axboe | c223da8 | 2010-03-24 13:23:53 +0100 | [diff] [blame] | 10 | extern void usec_spin(unsigned int); |
| 11 | extern void usec_sleep(struct thread_data *, unsigned long); |
| 12 | extern void fill_start_time(struct timeval *); |
Jens Axboe | c223da8 | 2010-03-24 13:23:53 +0100 | [diff] [blame] | 13 | extern void set_genesis_time(void); |
| 14 | extern int ramp_time_over(struct thread_data *); |
| 15 | extern int in_ramp_time(struct thread_data *); |
Jens Axboe | c223da8 | 2010-03-24 13:23:53 +0100 | [diff] [blame] | 16 | extern void fio_time_init(void); |
Jens Axboe | c223da8 | 2010-03-24 13:23:53 +0100 | [diff] [blame] | 17 | |
| 18 | #endif |