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 | c223da8 | 2010-03-24 13:23:53 +0100 | [diff] [blame] | 4 | extern unsigned long long utime_since(struct timeval *, struct timeval *); |
| 5 | extern unsigned long long utime_since_now(struct timeval *); |
| 6 | extern unsigned long mtime_since(struct timeval *, struct timeval *); |
| 7 | extern unsigned long mtime_since_now(struct timeval *); |
| 8 | extern unsigned long time_since_now(struct timeval *); |
| 9 | extern unsigned long mtime_since_genesis(void); |
| 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 *); |
| 16 | extern unsigned long long genesis_cycles; |
| 17 | extern void fio_time_init(void); |
Jens Axboe | c223da8 | 2010-03-24 13:23:53 +0100 | [diff] [blame] | 18 | |
| 19 | #endif |