X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=fio_time.h;h=62d92120a5ac40b1e22cd8db33d0167eb6a78a66;hb=0f5234b4d75c4415d87903d26cdd79ee380c7f49;hp=f4eac793f4fb3311dbd77069fc5a392477f33fef;hpb=d6bb626ef37d3905221ade2887b422717a07af09;p=fio.git diff --git a/fio_time.h b/fio_time.h index f4eac793..62d92120 100644 --- a/fio_time.h +++ b/fio_time.h @@ -1,12 +1,20 @@ #ifndef FIO_TIME_H #define FIO_TIME_H +#include +/* IWYU pragma: begin_exports */ +#include +#include +/* IWYU pragma: end_exports */ #include "lib/types.h" struct thread_data; extern uint64_t ntime_since(const struct timespec *, const struct timespec *); +extern uint64_t ntime_since_now(const struct timespec *); extern uint64_t utime_since(const struct timespec *, const struct timespec *); extern uint64_t utime_since_now(const struct timespec *); +extern int64_t rel_time_since(const struct timespec *, + const struct timespec *); extern uint64_t mtime_since(const struct timespec *, const struct timespec *); extern uint64_t mtime_since_now(const struct timespec *); extern uint64_t mtime_since_tv(const struct timeval *, const struct timeval *); @@ -22,6 +30,6 @@ extern bool ramp_time_over(struct thread_data *); extern bool in_ramp_time(struct thread_data *); extern void fio_time_init(void); extern void timespec_add_msec(struct timespec *, unsigned int); -extern void set_epoch_time(struct thread_data *, int); +extern void set_epoch_time(struct thread_data *, int, clockid_t); #endif