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 <simon@rozman.si>
This commit is contained in:
Simon Rozman 2024-04-23 11:12:07 +02:00
parent 3d3b7565bf
commit 24c35279a0

View File

@ -171,7 +171,7 @@ namespace stdex {
struct aosn_timestamp struct aosn_timestamp
{ {
using rep = int64_t; using rep = int64_t;
using period = std::ratio<1, 1'000'000>; // 1 microsecond using period = std::milli;
using duration = std::chrono::duration<rep, period>; using duration = std::chrono::duration<rep, period>;
using time_point = std::chrono::time_point<aosn_timestamp>; using time_point = std::chrono::time_point<aosn_timestamp>;
static constexpr bool is_steady = false; static constexpr bool is_steady = false;