Lines Matching defs:state
28 void try_invalid_pause_resume(benchmark::State& state) {
32 state.PauseTiming();
37 state.ResumeTiming();
42 (void)state; // avoid unused warning
46 void BM_diagnostic_test(benchmark::State& state) {
49 if (called_once == false) try_invalid_pause_resume(state);
51 for (auto _ : state) {
52 auto iterations = state.iterations();
56 if (called_once == false) try_invalid_pause_resume(state);
62 void BM_diagnostic_test_keep_running(benchmark::State& state) {
65 if (called_once == false) try_invalid_pause_resume(state);
67 while (state.KeepRunning()) {
68 auto iterations = state.iterations();
72 if (called_once == false) try_invalid_pause_resume(state);