blob: d835191250fcb8e412762d48c00077e38c2d4f8e [file] [log] [blame]
Jens Axboec223da82010-03-24 13:23:53 +01001#ifndef FIO_TIME_H
2#define FIO_TIME_H
3
Jens Axboeaa60bc52013-01-04 13:24:52 +01004extern uint64_t utime_since(struct timeval *, struct timeval *);
5extern uint64_t utime_since_now(struct timeval *);
6extern uint64_t mtime_since(struct timeval *, struct timeval *);
7extern uint64_t mtime_since_now(struct timeval *);
8extern uint64_t time_since_now(struct timeval *);
9extern uint64_t mtime_since_genesis(void);
Jens Axboec223da82010-03-24 13:23:53 +010010extern void usec_spin(unsigned int);
11extern void usec_sleep(struct thread_data *, unsigned long);
12extern void fill_start_time(struct timeval *);
Jens Axboec223da82010-03-24 13:23:53 +010013extern void set_genesis_time(void);
14extern int ramp_time_over(struct thread_data *);
15extern int in_ramp_time(struct thread_data *);
Jens Axboec223da82010-03-24 13:23:53 +010016extern void fio_time_init(void);
Jens Axboec223da82010-03-24 13:23:53 +010017
18#endif