Skip to content

Commit

Permalink
use steady clock for scope timings (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilipDeegan authored Oct 12, 2024
1 parent f65198d commit da4d2e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/phlop/timing/scope_timer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ struct scope_timer
std::uint64_t static now()
{
return std::chrono::duration_cast<std::chrono::nanoseconds>(
std::chrono::system_clock::now().time_since_epoch())
std::chrono::steady_clock::now().time_since_epoch())
.count();
}

Expand Down

0 comments on commit da4d2e2

Please sign in to comment.