Image Component Library (ICL)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Private Member Functions | Private Attributes
icl::utils::Timer Class Reference

#include <Timer.h>

List of all members.

Public Member Functions

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

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

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

Constructor.

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

Member Function Documentation

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

alias for startTimer

Start the time measurement.

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

alias for stopTimer

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

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
void icl::utils::Timer::stopTimer ( std::string  sName = "no name")

Stop the time measurement and print the complete working time.


Member Data Documentation

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

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines