Tiny Vector Matrix library using Expression Templates | Sourceforge Project Page |
#include <tvmet/util/Timer.h>
It is recommended that implementations measure wall clock rather than CPU time since the intended use is performance measurement on systems where total elapsed time is more important than just process or CPU time.
The accuracy of timings depends on the accuracy of timing information provided by the underlying platform, and this varies from platform to platform.
Public Types | |
typedef double | time_t |
Public Member Functions | |
Timer () | |
starts the timer immediatly. | |
void | restart () |
restarts the timer | |
time_t | elapsed () const |
return elapsed time in seconds | |
Private Member Functions | |
Timer (const Timer &) | |
Timer & | operator= (const Timer &) |
time_t | getTime () const |
Private Attributes | |
time_t | m_start_time |
typedef double tvmet::util::Timer::time_t |
tvmet::util::Timer::Timer | ( | const Timer & | ) | [private] |
tvmet::util::Timer::Timer | ( | ) | [inline] |
starts the timer immediatly.
void tvmet::util::Timer::restart | ( | ) | [inline] |
restarts the timer
time_t tvmet::util::Timer::elapsed | ( | ) | const [inline] |
return elapsed time in seconds
time_t tvmet::util::Timer::getTime | ( | ) | const [inline, private] |
time_t tvmet::util::Timer::m_start_time [private] |
Author: |