NumeRe v1.1.4
NumeRe: Framework für Numerische Rechnungen
Timer Class Reference

#include <timer.hpp>

Collaboration diagram for Timer:

Public Member Functions

 Timer (const std::string &scopeName)
 
 ~Timer ()
 
void Stop ()
 

Private Attributes

std::chrono::time_point< std::chrono::system_clock, std::chrono::nanoseconds > m_StartPoint
 
std::string m_ScopeName
 

Detailed Description

Definition at line 27 of file timer.hpp.

Constructor & Destructor Documentation

◆ Timer()

Timer::Timer ( const std::string &  scopeName)
inline

Definition at line 34 of file timer.hpp.

References m_ScopeName, and m_StartPoint.

◆ ~Timer()

Timer::~Timer ( )
inline

Definition at line 40 of file timer.hpp.

References Stop().

Here is the call graph for this function:

Member Function Documentation

◆ Stop()

void Timer::Stop ( )
inline

Definition at line 45 of file timer.hpp.

References m_ScopeName, m_StartPoint, NumeReKernel::print(), and toString().

Referenced by ~Timer().

Here is the call graph for this function:

Member Data Documentation

◆ m_ScopeName

std::string Timer::m_ScopeName
private

Definition at line 31 of file timer.hpp.

Referenced by Stop(), and Timer().

◆ m_StartPoint

std::chrono::time_point<std::chrono::system_clock, std::chrono::nanoseconds> Timer::m_StartPoint
private

Definition at line 30 of file timer.hpp.

Referenced by Stop(), and Timer().


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