X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=tests%2Futils%2Futils.h;h=802743ec1fd32fc3c6c5c420ac058c9181dc132c;hb=2a69bf1437eb7e81979a1410b1a66a960b52caeb;hp=87b4918def3a9960a230b4ace04ad71b56007128;hpb=e73b293111eacc3c0f6eca0009ac3afa51ea85f1;p=lttng-tools.git diff --git a/tests/utils/utils.h b/tests/utils/utils.h index 87b4918de..802743ec1 100644 --- a/tests/utils/utils.h +++ b/tests/utils/utils.h @@ -8,6 +8,7 @@ #ifndef TEST_UTILS_H #define TEST_UTILS_H +#include #include #if defined(__cplusplus) @@ -42,7 +43,7 @@ extern "C" { int usleep_safe(useconds_t usec); int create_file(const char *path); int wait_on_file(const char *path); - +int64_t elapsed_time_ns(struct timespec *t1, struct timespec *t2); #if defined(__cplusplus) } #endif