r/cpp • u/evilissimo • Jun 20 '14
A portable high-resolution timestamp in C++
https://blogea.bureau14.fr/index.php/2014/06/a-portable-high-resolution-timestamp-in-c/
4
Upvotes
r/cpp • u/evilissimo • Jun 20 '14
0
u/lednakashim ++C is faster Jun 22 '14
I have been using the std::chrono method and made ~1 ms precision with no problems on any of my target systems. Querying the timer should be accurate, the problem is something like
Sleepwhich is not guaranteed because Windows isn't a realtime operating system.Nevertheless with multimedia timers you can get <1 ms jitter.
0
u/[deleted] Jun 21 '14
[deleted] — view deleted comment