NAIA
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
Classes | Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
NAIA::Benchmark Class Reference

#include <Benchmark.h>

Classes

struct  Measurement
 

Public Member Functions

Stopwatch MakeStopwatch (std::string name)
 
void Print (std::shared_ptr< spdlog::logger > logger)
 

Private Member Functions

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

Private Attributes

std::map< std::string,
Measurement
m_timers
 

Friends

class Stopwatch
 

Detailed Description

Definition at line 17 of file Benchmark.h.

Member Function Documentation

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

Definition at line 66 of file Benchmark.h.

References Stopwatch.

Referenced by NAIA::NtpSelector::UBegin(), and NAIA::NtpSelector::UProcessCut().

void NAIA::Benchmark::Print ( std::shared_ptr< spdlog::logger >  logger)
inline

Definition at line 29 of file Benchmark.h.

References m_timers.

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

Definition at line 41 of file Benchmark.h.

References m_timers.

Referenced by NAIA::Stopwatch::~Stopwatch().

Friends And Related Function Documentation

friend class Stopwatch
friend

Definition at line 18 of file Benchmark.h.

Referenced by MakeStopwatch().

Member Data Documentation

std::map<std::string, Measurement> NAIA::Benchmark::m_timers
private

Definition at line 47 of file Benchmark.h.

Referenced by Print(), and UpdateTimer().


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