Flutter Engine
benchmarking::ScopedPauseTiming Class Reference

#include <benchmarking.h>

Public Member Functions

 ScopedPauseTiming (::benchmark::State &state, bool enabled=true)
 
 ~ScopedPauseTiming ()
 

Detailed Description

Definition at line 12 of file benchmarking.h.

Constructor & Destructor Documentation

◆ ScopedPauseTiming()

benchmarking::ScopedPauseTiming::ScopedPauseTiming ( ::benchmark::State &  state,
bool  enabled = true 
)
inline

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: