Image Component Library (ICL)
|
#include <Timer.h>
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_type > | m_vecTime |
std::vector< std::string > | m_vecTimerName |
icl::utils::Timer::Timer | ( | int | iTimerMode = 0 | ) |
Constructor.
iTimerMode | Select the output format (0 = ms, 1 = ns) |
Time::value_type icl::utils::Timer::getTime | ( | ) | [private] |
void icl::utils::Timer::start | ( | ) | [inline] |
alias for startTimer
void icl::utils::Timer::startTimer | ( | ) |
Start the time measurement.
void icl::utils::Timer::stop | ( | std::string | sName = "no name" | ) | [inline] |
alias for stopTimer
long int icl::utils::Timer::stopSilent | ( | ) |
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).
sName | Set the timer name (only for user information) |
void icl::utils::Timer::stopTimer | ( | std::string | sName = "no name" | ) |
Stop the time measurement and print the complete working time.
int icl::utils::Timer::m_iTimerMode [private] |
std::vector<Time::value_type> icl::utils::Timer::m_vecTime [private] |
std::vector<std::string> icl::utils::Timer::m_vecTimerName [private] |