diff options
Diffstat (limited to 'src/timestamp/timestamp.cpp')
| -rw-r--r-- | src/timestamp/timestamp.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/timestamp/timestamp.cpp b/src/timestamp/timestamp.cpp index 72bd37c..3e90e48 100644 --- a/src/timestamp/timestamp.cpp +++ b/src/timestamp/timestamp.cpp @@ -1,5 +1,6 @@ #include <time.h> +#include "macro.h" #include "timestamp.h" // 1 s = 1000 ms @@ -23,9 +24,6 @@ struct timestamp uint64_t ts_in_sec; } g_timestamp; -#define ATOMIC_SET(x, y) __atomic_store_n(x, y, __ATOMIC_RELAXED) -#define ATOMIC_READ(x) __atomic_load_n(x, __ATOMIC_RELAXED) - void timestamp_update() { /* |
