MCPcopy Create free account
hub / github.com/BYVoid/OpenCC / StopTimer

Method StopTimer

deps/google-benchmark/src/thread_timer.h:30–38  ·  view source on GitHub ↗

Called by each thread

Source from the content-addressed store, hash-verified

28
29 // Called by each thread
30 void StopTimer() {
31 BM_CHECK(running_);
32 running_ = false;
33 real_time_used_ += ChronoClockNow() - start_real_time_;
34 // Floating point error can result in the subtraction producing a negative
35 // time. Guard against that.
36 cpu_time_used_ +=
37 std::max<double>(ReadCpuTimerOfChoice() - start_cpu_time_, 0);
38 }
39
40 // Called by each thread
41 void SetIterationTime(double seconds) { manual_time_used_ += seconds; }

Callers 2

PauseTimingMethod · 0.80
SkipWithErrorMethod · 0.80

Calls 1

ChronoClockNowFunction · 0.85

Tested by

no test coverage detected