Improve logging accuracy
[fio.git] / fio_time.h
CommitLineData
c223da83
JA
1#ifndef FIO_TIME_H
2#define FIO_TIME_H
3
48b944c4 4struct thread_data;
1f440ece
JA
5extern uint64_t utime_since(const struct timeval *,const struct timeval *);
6extern uint64_t utime_since_now(const struct timeval *);
7extern uint64_t mtime_since(const struct timeval *, const struct timeval *);
8extern uint64_t mtime_since_now(const struct timeval *);
9extern uint64_t time_since_now(const struct timeval *);
8b22c785 10extern uint64_t time_since_genesis(void);
aa60bc58 11extern uint64_t mtime_since_genesis(void);
0de5b26f 12extern uint64_t utime_since_genesis(void);
9cc80b6d
JA
13extern uint64_t usec_spin(unsigned int);
14extern uint64_t usec_sleep(struct thread_data *, unsigned long);
c223da83 15extern void fill_start_time(struct timeval *);
c223da83
JA
16extern void set_genesis_time(void);
17extern int ramp_time_over(struct thread_data *);
18extern int in_ramp_time(struct thread_data *);
c223da83 19extern void fio_time_init(void);
a47591e4 20extern void timeval_add_msec(struct timeval *, unsigned int);
c223da83
JA
21
22#endif