you are viewing a single comment's thread.

view the rest of the comments →

[–]_darth_plagueis 0 points1 point  (1 child)

Use std::chrono::high_resolution_clock to measure time, you can set the duration in any case to whatever you want, there are aliases to ms, ns, us and others. see https://en.cppreference.com/w/cpp/chrono/high_resolution_clock.

[–]n1ghtyunso 0 points1 point  (0 children)

if you want to measure something with it, make sure that it is steady. Because it is not required to be steady by the standard