HerdSoftware  0.1.1
Classes | Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
Benchmark Class Reference

#include <Benchmark.h>

Classes

struct  Measurement
 

Public Member Functions

Stopwatch MakeStopwatch (std::string name)
 
std::unique_ptr< StopwatchMakeStopwatchPtr (std::string name)
 
void Print ()
 

Private Member Functions

void UpdateTimer (std::string &&timerName, t_clock::duration time)
 

Private Attributes

std::unordered_map< std::string, Measurementm_timers
 

Friends

class Stopwatch
 

Member Function Documentation

◆ MakeStopwatch()

Stopwatch Benchmark::MakeStopwatch ( std::string  name)
inline

◆ MakeStopwatchPtr()

std::unique_ptr< Stopwatch > Benchmark::MakeStopwatchPtr ( std::string  name)
inline

◆ Print()

void Benchmark::Print ( )
inline

◆ UpdateTimer()

void Benchmark::UpdateTimer ( std::string &&  timerName,
t_clock::duration  time 
)
inlineprivate

Friends And Related Function Documentation

◆ Stopwatch

friend class Stopwatch
friend

Member Data Documentation

◆ m_timers

std::unordered_map<std::string, Measurement> Benchmark::m_timers
private

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