X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=blobdiff_plain;f=tests%2Futils%2Futils.c;h=0b9655247e81ba30604b88891e352ed553e960a5;hp=7aa8667d4f4520891d4b5d013ae752641897dde8;hb=838193da4897e62cebf4ef2090ba7224cbdad1da;hpb=389fbf04b41e2002be44a1e3392bfade2f1deeef diff --git a/tests/utils/utils.c b/tests/utils/utils.c index 7aa8667d4..0b9655247 100644 --- a/tests/utils/utils.c +++ b/tests/utils/utils.c @@ -17,14 +17,12 @@ #include #include +#include #include #include #include #include -#define NSEC_PER_SEC 1000000000ULL -#define NSEC_PER_USEC 1000ULL - static inline int64_t elapsed_time_ns(struct timespec *t1, struct timespec *t2) { @@ -57,7 +55,7 @@ int usleep_safe(useconds_t usec) goto end; } - ret = clock_gettime(CLOCK_MONOTONIC, &t2); + ret = lttng_clock_gettime(CLOCK_MONOTONIC, &t2); if (ret) { perror("clock_gettime"); goto end;