Only enable atomic io_u flag setting/clearing if we need it
[fio.git] / fio_time.h
CommitLineData
c223da83
JA
1#ifndef FIO_TIME_H
2#define FIO_TIME_H
3
356014ff
JA
4#include "lib/types.h"
5
48b944c4 6struct thread_data;
1f440ece
JA
7extern uint64_t utime_since(const struct timeval *,const struct timeval *);
8extern uint64_t utime_since_now(const struct timeval *);
9extern uint64_t mtime_since(const struct timeval *, const struct timeval *);
10extern uint64_t mtime_since_now(const struct timeval *);
11extern uint64_t time_since_now(const struct timeval *);
8b22c785 12extern uint64_t time_since_genesis(void);
aa60bc58 13extern uint64_t mtime_since_genesis(void);
0de5b26f 14extern uint64_t utime_since_genesis(void);
9cc80b6d
JA
15extern uint64_t usec_spin(unsigned int);
16extern uint64_t usec_sleep(struct thread_data *, unsigned long);
c223da83 17extern void fill_start_time(struct timeval *);
c223da83 18extern void set_genesis_time(void);
356014ff
JA
19extern bool ramp_time_over(struct thread_data *);
20extern bool in_ramp_time(struct thread_data *);
c223da83 21extern void fio_time_init(void);
a47591e4 22extern void timeval_add_msec(struct timeval *, unsigned int);
c223da83
JA
23
24#endif