Cppcheck
Public Member Functions | Private Attributes | List of all members
Timer Class Reference

#include <timer.h>

Public Member Functions

 Timer (std::string str, SHOWTIME_MODES showtimeMode, TimerResultsIntf *timerResults=nullptr)
 
 Timer (bool fileTotal, std::string filename)
 
 ~Timer ()
 
 Timer (const Timer &)=delete
 
Timeroperator= (const Timer &)=delete
 
void stop ()
 

Private Attributes

const std::string mStr
 
TimerResultsIntfmTimerResults {}
 
std::clock_t mStart = std::clock()
 
const SHOWTIME_MODES mShowTimeMode = SHOWTIME_MODES::SHOWTIME_FILE_TOTAL
 
bool mStopped {}
 

Detailed Description

Definition at line 70 of file timer.h.

Constructor & Destructor Documentation

◆ Timer() [1/3]

Timer::Timer ( std::string  str,
SHOWTIME_MODES  showtimeMode,
TimerResultsIntf timerResults = nullptr 
)

Definition at line 105 of file timer.cpp.

References SHOWTIME_FILE_TOTAL, and SHOWTIME_NONE.

◆ Timer() [2/3]

Timer::Timer ( bool  fileTotal,
std::string  filename 
)

Definition at line 113 of file timer.cpp.

◆ ~Timer()

Timer::~Timer ( )

Definition at line 118 of file timer.cpp.

References stop().

◆ Timer() [3/3]

Timer::Timer ( const Timer )
delete

Member Function Documentation

◆ operator=()

Timer& Timer::operator= ( const Timer )
delete

◆ stop()

void Timer::stop ( )

Member Data Documentation

◆ mShowTimeMode

const SHOWTIME_MODES Timer::mShowTimeMode = SHOWTIME_MODES::SHOWTIME_FILE_TOTAL
private

Definition at line 85 of file timer.h.

Referenced by stop().

◆ mStart

std::clock_t Timer::mStart = std::clock()
private

Definition at line 84 of file timer.h.

Referenced by stop().

◆ mStopped

bool Timer::mStopped {}
private

Definition at line 86 of file timer.h.

Referenced by stop().

◆ mStr

const std::string Timer::mStr
private

Definition at line 82 of file timer.h.

Referenced by stop().

◆ mTimerResults

TimerResultsIntf* Timer::mTimerResults {}
private

Definition at line 83 of file timer.h.

Referenced by stop().


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