Home » Community » U++ community news and announcements » usecs
Re: usecs [message #50691 is a reply to message #50687] |
Wed, 05 December 2018 23:36   |
Zbych
Messages: 327 Registered: July 2009
|
Senior Member |
|
|
Tom1 wrote on Wed, 05 December 2018 12:59Is usecs() a monotonically increasing timer? (I.e. no jumps backward or forward ever, even if OS time is adjusted by user or NTP.)
According to the docs: https://en.cppreference.com/w/cpp/chrono/high_resolution_clo ck
it is implementation dependent.
It also means that new implementation of msecs() might not be monotonic as well and all timeouts in many places (sockets etc.) might randomly get shortened or extended.
If you need monotonic clock use std::chrono::steady_clock.
[Updated on: Wed, 05 December 2018 23:48] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Sat May 10 05:18:06 CEST 2025
Total time taken to generate the page: 0.04274 seconds
|