How to find the difference between time_point<utc_clock> and time_point<system_clock>?
Apr 1, 2023 at 4:40pm
I have the following code:
1 2 3
|
auto utc_now = chr::utc_clock::now();
auto now = chr::system_clock::now();
auto dif = now - utcNow; // does not compile
|
how to compare between one time_point to another when we use different clocks?
Regards
Apr 1, 2023 at 6:34pm
Topic archived. No new replies allowed.