use steady_clock for benchmarks

This commit is contained in:
Dmitry Arkhipov 2023-10-31 00:39:22 +03:00
parent 80f8825fae
commit 8700ab838d

View File

@ -127,7 +127,7 @@ run_for(
Rep, Period> interval,
F&& f)
{
using clock_type = std::chrono::high_resolution_clock;
using clock_type = std::chrono::steady_clock;
auto const when = clock_type::now();
auto elapsed = clock_type::now() - when;
std::size_t n = 0;