MCPcopy Create free account
hub / github.com/ChaiScript/ChaiScript / getCurrentNanosecondsSinceEpoch

Function getCurrentNanosecondsSinceEpoch

unittests/catch.hpp:10528–10530  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10526namespace Catch {
10527
10528 auto getCurrentNanosecondsSinceEpoch() -> uint64_t {
10529 return std::chrono::duration_cast<std::chrono::nanoseconds>( std::chrono::high_resolution_clock::now().time_since_epoch() ).count();
10530 }
10531
10532 auto estimateClockResolution() -> uint64_t {
10533 uint64_t sum = 0;

Callers 3

estimateClockResolutionFunction · 0.85
startMethod · 0.85
getElapsedNanosecondsMethod · 0.85

Calls 2

nowFunction · 0.50
countMethod · 0.45

Tested by

no test coverage detected