diff options
author | Stefan Kerkmann <karlk90@pm.me> | 2022-12-14 16:31:08 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-15 02:31:08 +1100 |
commit | 962e4c0e1854b10612bab547c3d842c5f967dd23 (patch) | |
tree | dfe13a5a7d3f593452a1e77b5c4173263d3fb2e2 /platforms/test | |
parent | e2ab98f9601049a7540bd89cb128669b09c688d5 (diff) |
[Test] Reset timer for every unit test and provide timestamps for log messages (#17028)
Diffstat (limited to 'platforms/test')
-rw-r--r-- | platforms/test/timer.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/platforms/test/timer.c b/platforms/test/timer.c index e0acd1b16d..320cc57782 100644 --- a/platforms/test/timer.c +++ b/platforms/test/timer.c @@ -15,8 +15,9 @@ */ #include "timer.h" +#include <stdatomic.h> -static uint32_t current_time = 0; +static atomic_uint_least32_t current_time = 0; void timer_init(void) { current_time = 0; |