MCPcopy Create free account
hub / github.com/apple/foundationdb / bench_timer

Function bench_timer

flowbench/BenchTimer.cpp:25–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23#include "flow/Platform.h"
24
25static void bench_timer(benchmark::State& state) {
26 while (state.KeepRunning()) {
27 double time = timer();
28 benchmark::DoNotOptimize(time);
29 }
30 state.SetItemsProcessed(static_cast<long>(state.iterations()));
31}
32
33static void bench_timer_monotonic(benchmark::State& state) {
34 while (state.KeepRunning()) {

Callers

nothing calls this directly

Calls 1

timerFunction · 0.50

Tested by

no test coverage detected