Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » U++ community news and announcements » usecs
Re: usecs [message #50691 is a reply to message #50687] Wed, 05 December 2018 23:36 Go to previous messageGo to previous message
Zbych is currently offline  Zbych
Messages: 326
Registered: July 2009
Senior Member
Tom1 wrote on Wed, 05 December 2018 12:59
Is 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 Sad 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

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Critical issues to resolve for U++ 2018.1 - please suggest
Next Topic: Happy New Year 2019
Goto Forum:
  


Current Time: Wed May 08 03:00:51 CEST 2024

Total time taken to generate the page: 0.11084 seconds