mirror of
https://github.com/boostorg/json.git
synced 2025-05-11 13:44:06 +00:00
use steady_clock for benchmarks
This commit is contained in:
parent
80f8825fae
commit
8700ab838d
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user