X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=fio_time.h;h=b3bbd4c011c2518aea5cbf5523f514136f8601b3;hb=2fbe1e195999e23c95b08d03eadac0b5f95330e7;hp=c7c3dbbad957240d5371e77967f7486b0dd028e3;hpb=6e8136d10c903b9aab0f9159077890a68ee46dd9;p=fio.git diff --git a/fio_time.h b/fio_time.h index c7c3dbba..b3bbd4c0 100644 --- a/fio_time.h +++ b/fio_time.h @@ -1,6 +1,11 @@ #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; @@ -8,6 +13,8 @@ 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 *);