FreeRTOS port on GAP8/RISC-V
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Catch::BenchmarkLooper Class Reference

Public Member Functions

 BenchmarkLooper (StringRef name)
 
 operator bool ()
 
void increment ()
 
void reportStart ()
 
auto needsMoreIterations () -> bool
 

Static Private Member Functions

static auto getResolution () -> uint64_t
 

Private Attributes

std::string m_name
 
std::size_t m_count
 
std::size_t m_iterationsToRun
 
uint64_t m_resolution
 
Timer m_timer
 

Constructor & Destructor Documentation

Catch::BenchmarkLooper::BenchmarkLooper ( StringRef  name)
inline

Member Function Documentation

static auto Catch::BenchmarkLooper::getResolution ( ) -> uint64_t
staticprivate
void Catch::BenchmarkLooper::increment ( )
inline
auto Catch::BenchmarkLooper::needsMoreIterations ( ) -> bool
Catch::BenchmarkLooper::operator bool ( )
inlineexplicit
void Catch::BenchmarkLooper::reportStart ( )

Field Documentation

std::size_t Catch::BenchmarkLooper::m_count
private
std::size_t Catch::BenchmarkLooper::m_iterationsToRun
private
std::string Catch::BenchmarkLooper::m_name
private
uint64_t Catch::BenchmarkLooper::m_resolution
private
Timer Catch::BenchmarkLooper::m_timer
private