ZeroErr
zeroerr::BenchState Struct Reference
Collaboration diagram for zeroerr::BenchState:

Public Types

enum  { UnInit , WarmUp , UpScaling , Measurement }
 

Public Member Functions

 BenchState (Benchmark &bench)
 
bool isCloseEnoughForMeasurements () const noexcept
 
uint64_t calcBestNumIters () noexcept
 
void upscale ()
 
void nextStage () noexcept
 

Public Attributes

Benchmarkbench
 
enum zeroerr::BenchState:: { ... }  stage
 
Clock::duration elapsed
 
Clock::duration targetEpochTime
 
uint64_t numIteration
 
uint64_t numEpoch
 
Rng mRng {1024}
 
BenchResult result
 

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
UnInit 
WarmUp 
UpScaling 
Measurement 

Constructor & Destructor Documentation

◆ BenchState()

zeroerr::BenchState::BenchState ( Benchmark bench)
inline

Member Function Documentation

◆ calcBestNumIters()

uint64_t zeroerr::BenchState::calcBestNumIters ( )
inlinenoexcept

◆ isCloseEnoughForMeasurements()

bool zeroerr::BenchState::isCloseEnoughForMeasurements ( ) const
inlinenoexcept

◆ nextStage()

void zeroerr::BenchState::nextStage ( )
inlinenoexcept

◆ upscale()

void zeroerr::BenchState::upscale ( )
inline

Member Data Documentation

◆ bench

Benchmark& zeroerr::BenchState::bench

◆ elapsed

Clock::duration zeroerr::BenchState::elapsed

◆ mRng

Rng zeroerr::BenchState::mRng {1024}

◆ numEpoch

uint64_t zeroerr::BenchState::numEpoch

◆ numIteration

uint64_t zeroerr::BenchState::numIteration

◆ result

BenchResult zeroerr::BenchState::result

◆ 

enum { ... } zeroerr::BenchState::stage

◆ targetEpochTime

Clock::duration zeroerr::BenchState::targetEpochTime

The documentation for this struct was generated from the following file: