Sanity test: this should loop ten times, and min/max/average should be close to 100ms.
| 9 | // Sanity test: this should loop ten times, and |
| 10 | // min/max/average should be close to 100ms. |
| 11 | static void Sleep100ms(benchmark::State& state) |
| 12 | { |
| 13 | while (state.KeepRunning()) { |
| 14 | MilliSleep(100); |
| 15 | } |
| 16 | } |
| 17 | |
| 18 | BENCHMARK(Sleep100ms, 10); |
| 19 |
nothing calls this directly
no test coverage detected