#include <benchmarking.h>
Definition at line 12 of file benchmarking.h.
◆ ScopedPauseTiming()
| benchmarking::ScopedPauseTiming::ScopedPauseTiming |
( |
::benchmark::State & |
state, |
|
|
bool |
enabled = true |
|
) |
| |
|
inlineexplicit |
Definition at line 14 of file benchmarking.h.
15 : state_(state), enabled_(enabled) {
16 if (enabled_) {
17 state_.PauseTiming();
18 }
19 }
◆ ~ScopedPauseTiming()
| benchmarking::ScopedPauseTiming::~ScopedPauseTiming |
( |
| ) |
|
|
inline |
Definition at line 20 of file benchmarking.h.
20 {
21 if (enabled_) {
22 state_.ResumeTiming();
23 }
24 }
The documentation for this class was generated from the following file: