Fix: time redefinition warnings on macOS builds
[lttng-tools.git] / tests / utils / utils.c
index 7aa8667d4f4520891d4b5d013ae752641897dde8..b85f027e0b41364f5795dcf328710e33c9b16c6f 100644 (file)
 
 #include <stdint.h>
 #include <common/compat/time.h>
+#include <common/time.h>
 #include <assert.h>
 #include <unistd.h>
 #include <stdio.h>
 #include <errno.h>
 
-#define NSEC_PER_SEC 1000000000ULL
-#define NSEC_PER_USEC 1000ULL
-
 static inline
 int64_t elapsed_time_ns(struct timespec *t1, struct timespec *t2)
 {
This page took 0.023422 seconds and 4 git commands to generate.