From 9e3f903539eb9578642f350ed8763a9f8c1e8bd9 Mon Sep 17 00:00:00 2001 From: Alberto Nidasio <alberto.nidasio@skywarder.eu> Date: Wed, 4 May 2022 18:51:19 +0200 Subject: [PATCH] [host] Updated TimestampTimer --- src/shared/drivers/timer/TimestampTimer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/drivers/timer/TimestampTimer.h b/src/shared/drivers/timer/TimestampTimer.h index 3f54fb1ad..8b2bc6f2f 100644 --- a/src/shared/drivers/timer/TimestampTimer.h +++ b/src/shared/drivers/timer/TimestampTimer.h @@ -101,7 +101,7 @@ private: inline uint64_t TimestampTimer::getTimestamp() { #ifdef COMPILE_FOR_HOST - return 0; + return time(NULL); #else // With a timer frequency of 250KHz, the conversion from timer ticks to // microseconds only take a 2 byte shift (x4) -- GitLab