MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / Sleep100ms

Function Sleep100ms

src/bench/examples.cpp:11–16  ·  view source on GitHub ↗

Sanity test: this should loop ten times, and min/max/average should be close to 100ms.

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

MilliSleepFunction · 0.85
KeepRunningMethod · 0.80

Tested by

no test coverage detected