#include <Timer.h>
◆ Timer()
icl::utils::Timer::Timer |
( |
int |
iTimerMode = 0 | ) |
|
Constructor.
- Parameters
-
iTimerMode | Select the output format (0 = ms, 1 = ns) |
◆ getTime()
◆ start()
void icl::utils::Timer::start |
( |
| ) |
|
|
inline |
◆ startTimer()
void icl::utils::Timer::startTimer |
( |
| ) |
|
Start the time measurement.
◆ stop()
void icl::utils::Timer::stop |
( |
std::string |
sName = "no name" | ) |
|
|
inline |
◆ 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
-
sName | Set 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.
◆ m_iTimerMode
int icl::utils::Timer::m_iTimerMode |
|
private |
◆ m_vecTime
◆ m_vecTimerName
std::vector<std::string> icl::utils::Timer::m_vecTimerName |
|
private |
The documentation for this class was generated from the following file:
- /Users/alneuman/vm/icl/ICLUtils/src/ICLUtils/Timer.h