Posts tagged with timing

C++ chrono lib resolution

Dug a little deeper into outputting time durations. It turns out that time_point has a default accuracy that is system-implementation-dependent or something....

Timing in C++

Use the <chrono> library. std::chrono::high_resolution_clock seems to do the trick. It should be giving me nanosecond resolution, but gives me only mic...