t/dedupe: fix init of all thread variables
[fio.git] / fio_time.h
1 #ifndef FIO_TIME_H
2 #define FIO_TIME_H
3
4 struct thread_data;
5 extern uint64_t utime_since(const struct timeval *,const  struct timeval *);
6 extern uint64_t utime_since_now(const struct timeval *);
7 extern uint64_t mtime_since(const struct timeval *, const struct timeval *);
8 extern uint64_t mtime_since_now(const struct timeval *);
9 extern uint64_t time_since_now(const struct timeval *);
10 extern uint64_t mtime_since_genesis(void);
11 extern uint64_t utime_since_genesis(void);
12 extern void usec_spin(unsigned int);
13 extern void usec_sleep(struct thread_data *, unsigned long);
14 extern void fill_start_time(struct timeval *);
15 extern void set_genesis_time(void);
16 extern int ramp_time_over(struct thread_data *);
17 extern int in_ramp_time(struct thread_data *);
18 extern void fio_time_init(void);
19
20 #endif