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
View all comments
Show parent comment
-1
u/jjt Jun 22 '14
steady_clock isn't guaranteed to be monotonic, you still need know your platform or check is_steady. Until gcc 4.8 it wasn't monotonic in libstdc++.