X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=fio_time.h;h=b49cc828713e4c67d53e362372760cd510510353;hb=8f7630813305a4f4f04a5f9ba20b2a7d486c0cfb;hp=5fd3847d37338f3a30c960a762edf65f2eea7077;hpb=1f440ece6127d2d274b961b6af0aa9091787702a;p=fio.git diff --git a/fio_time.h b/fio_time.h index 5fd3847d..b49cc828 100644 --- a/fio_time.h +++ b/fio_time.h @@ -1,20 +1,25 @@ #ifndef FIO_TIME_H #define FIO_TIME_H +#include "lib/types.h" + struct thread_data; extern uint64_t utime_since(const struct timeval *,const struct timeval *); extern uint64_t utime_since_now(const struct timeval *); extern uint64_t mtime_since(const struct timeval *, const struct timeval *); extern uint64_t mtime_since_now(const struct timeval *); extern uint64_t time_since_now(const struct timeval *); +extern uint64_t time_since_genesis(void); extern uint64_t mtime_since_genesis(void); extern uint64_t utime_since_genesis(void); -extern void usec_spin(unsigned int); -extern void usec_sleep(struct thread_data *, unsigned long); +extern uint64_t usec_spin(unsigned int); +extern uint64_t usec_sleep(struct thread_data *, unsigned long); extern void fill_start_time(struct timeval *); extern void set_genesis_time(void); -extern int ramp_time_over(struct thread_data *); -extern int in_ramp_time(struct thread_data *); +extern bool ramp_time_over(struct thread_data *); +extern bool in_ramp_time(struct thread_data *); extern void fio_time_init(void); +extern void timeval_add_msec(struct timeval *, unsigned int); +extern void set_epoch_time(struct thread_data *, int); #endif