From 24c35279a0e8a56e5ce71689ea06cf13bb247766 Mon Sep 17 00:00:00 2001 From: Simon Rozman Date: Tue, 23 Apr 2024 11:12:07 +0200 Subject: [PATCH] chrono: fix aosn_timestamp::period AOsn is measuring time in **milli**seconds. Not **micro**seconds! All conversions among clocks were off by a factor of 1000. Signed-off-by: Simon Rozman --- include/stdex/chrono.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/stdex/chrono.hpp b/include/stdex/chrono.hpp index 4d096dda2..b22ad23ba 100644 --- a/include/stdex/chrono.hpp +++ b/include/stdex/chrono.hpp @@ -171,7 +171,7 @@ namespace stdex { struct aosn_timestamp { using rep = int64_t; - using period = std::ratio<1, 1'000'000>; // 1 microsecond + using period = std::milli; using duration = std::chrono::duration; using time_point = std::chrono::time_point; static constexpr bool is_steady = false;