summaryrefslogtreecommitdiffstats
path: root/platforms/test/timer.c
diff options
context:
space:
mode:
Diffstat (limited to 'platforms/test/timer.c')
-rw-r--r--platforms/test/timer.c3
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;