Skip to content

Commit

Permalink
Use steady_clock instead of high_resolution_clock
Browse files Browse the repository at this point in the history
  • Loading branch information
cschreib committed Jan 15, 2023
1 parent 4d78c23 commit 3497bc6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/snitch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -903,7 +903,7 @@ test_state registry::run(test_case& test) noexcept {
thread_current_test = &state;

#if SNITCH_WITH_TIMINGS
using clock = std::chrono::high_resolution_clock;
using clock = std::chrono::steady_clock;
auto time_start = clock::now();
#endif

Expand Down Expand Up @@ -1005,7 +1005,7 @@ bool registry::run_selected_tests(
std::size_t assertion_count = 0;

#if SNITCH_WITH_TIMINGS
using clock = std::chrono::high_resolution_clock;
using clock = std::chrono::steady_clock;
auto time_start = clock::now();
#endif

Expand Down

0 comments on commit 3497bc6

Please sign in to comment.