20 (void)GetTime<std::chrono::seconds>();
28 (void)GetTime<std::chrono::milliseconds>();
35 (void)TicksSinceEpoch<std::chrono::milliseconds>(SystemClock::now());
Main entry point to nanobench's benchmarking facility.
Bench & run(char const *benchmarkName, Op &&op)
Repeatedly calls op() based on the configuration, and performs measurements.
int64_t GetTime()
DEPRECATED Use either ClockType::now() or Now<TimePointType>() if a cast is needed.
void SetMockTime(int64_t nMockTimeIn)
DEPRECATED Use SetMockTime with chrono type.
static void BenchTimeMock(benchmark::Bench &bench)
static void BenchTimeDeprecated(benchmark::Bench &bench)
static void BenchTimeMillis(benchmark::Bench &bench)
BENCHMARK(BenchTimeDeprecated, benchmark::PriorityLevel::HIGH)
static void BenchTimeMillisSys(benchmark::Bench &bench)