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:
parent
3d3b7565bf
commit
24c35279a0
@ -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<rep, period>;
|
||||
using time_point = std::chrono::time_point<aosn_timestamp>;
|
||||
static constexpr bool is_steady = false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user