| 23 | #include "flow/Platform.h" |
| 24 | |
| 25 | static 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 | |
| 33 | static void bench_timer_monotonic(benchmark::State& state) { |
| 34 | while (state.KeepRunning()) { |