Image Component Library (ICL)
Public Member Functions | Private Member Functions | Private Attributes | List of all members
icl::utils::Timer Class Reference

#include <Timer.h>

Public Member Functions

 Timer (int iTimerMode=0)
 Constructor. More...
 
void startTimer ()
 Start the time measurement. More...
 
void stopSubTimer (std::string sName="no name")
 Set a sub timer. More...
 
void stopTimer (std::string sName="no name")
 Stop the time measurement and print the complete working time. More...
 
void start ()
 alias for startTimer More...
 
void stop (std::string sName="no name")
 alias for stopTimer More...
 
long int stopSilent ()
 stops the timer and returns the overall working time as long int More...
 

Private Member Functions

Time::value_type getTime ()
 

Private Attributes

int m_iTimerMode
 
std::vector< Time::value_typem_vecTime
 
std::vector< std::string > m_vecTimerName
 

Constructor & Destructor Documentation

◆ Timer()

icl::utils::Timer::Timer ( int  iTimerMode = 0)

Constructor.

Parameters
iTimerModeSelect the output format (0 = ms, 1 = ns)

Member Function Documentation

◆ getTime()

Time::value_type icl::utils::Timer::getTime ( )
private

◆ start()

void icl::utils::Timer::start ( )
inline

alias for startTimer

◆ startTimer()

void icl::utils::Timer::startTimer ( )

Start the time measurement.

◆ stop()

void icl::utils::Timer::stop ( std::string  sName = "no name")
inline

alias for stopTimer

◆ stopSilent()

long int icl::utils::Timer::stopSilent ( )

stops the timer and returns the overall working time as long int

◆ stopSubTimer()

void icl::utils::Timer::stopSubTimer ( std::string  sName = "no name")

Set a sub timer.

Each sub time is printed at the end of the whole time measure process (stopTimer).

Parameters
sNameSet the timer name (only for user information)
See also
stopTimer

◆ stopTimer()

void icl::utils::Timer::stopTimer ( std::string  sName = "no name")

Stop the time measurement and print the complete working time.

Member Data Documentation

◆ m_iTimerMode

int icl::utils::Timer::m_iTimerMode
private

◆ m_vecTime

std::vector<Time::value_type> icl::utils::Timer::m_vecTime
private

◆ m_vecTimerName

std::vector<std::string> icl::utils::Timer::m_vecTimerName
private

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