We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0a27b8d commit fae028fCopy full SHA for fae028f
test/scoped_pause_test.cc
@@ -11,9 +11,10 @@ void BM_ScopedPause(benchmark::State& state) {
11
for (auto _ : state) {
12
benchmark::ScopedPauseTiming pause(state);
13
std::this_thread::sleep_for(std::chrono::milliseconds(10));
14
+ state.SetIterationTime(0.0);
15
}
16
-BENCHMARK(BM_ScopedPause)->UseRealTime()->Iterations(1);
17
+BENCHMARK(BM_ScopedPause)->UseManualTime()->Iterations(1);
18
19
void CheckResults(Results const& results) {
20
// Check that the real time is much less than the 10ms sleep time.
0 commit comments