Repository navigation
Std::Chrono
#249
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I'm slightly lost with chrono, duration and ratio.
Just an idea to do a Time sum.
std::chrono::time_pointstd::chrono::steady_clock a, b, c
for(...) {
a = std::chrono::steady_clock::now();
...
b = std::chrono::steady_clock::now();
c += b - a ???? doesn't compile
auto c { b-a} .... that's ok but it's not the purpose (it's not the sum)
}.
Pretty hard to be familiar with these "intricate class"... just for that case i have rewritten a single tickount class... but there is a usage to know ... Any ideas ???
All reactions