We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 02d3304 commit 7a89b75Copy full SHA for 7a89b75
src/catch2/catch_timer.cpp
@@ -13,7 +13,7 @@ namespace Catch {
13
14
namespace {
15
static auto getCurrentNanosecondsSinceEpoch() -> uint64_t {
16
- return std::chrono::duration_cast<std::chrono::nanoseconds>(std::chrono::high_resolution_clock::now().time_since_epoch()).count();
+ return std::chrono::duration_cast<std::chrono::nanoseconds>(std::chrono::steady_clock::now().time_since_epoch()).count();
17
}
18
} // end unnamed namespace
19
0 commit comments