LAMA
|
A simple timer interface, offering a few, common timer operations. More...
#include <Timer.hpp>
Public Member Functions | |
Timer () | |
Constructor. | |
virtual | ~Timer () |
Destructor. | |
virtual void | start (const std::string &timerId)=0 |
Starts or resumes the timer. | |
virtual void | stop (const std::string &timerId)=0 |
Stops the timer and stores time measured time internally. | |
virtual double | getTime (const std::string &timerId)=0 |
Gets the elapsed time since the last reset. | |
virtual void | stopAndReset (const std::string &timerId)=0 |
Stops and resets the timer. |
A simple timer interface, offering a few, common timer operations.
Constructor.
lama::Timer::~Timer | ( | ) | [virtual] |
Destructor.
virtual double lama::Timer::getTime | ( | const std::string & | timerId | ) | [pure virtual] |
Gets the elapsed time since the last reset.
[in] | timerId | the ID of the timer |
Implemented in lama::OpenMPTimer.
virtual void lama::Timer::start | ( | const std::string & | timerId | ) | [pure virtual] |
Starts or resumes the timer.
[in] | timerId | the ID of the timer |
Implemented in lama::OpenMPTimer.
virtual void lama::Timer::stop | ( | const std::string & | timerId | ) | [pure virtual] |
Stops the timer and stores time measured time internally.
Measurement may be resumed by calling start()
[in] | timerId | the ID of the timer |
Implemented in lama::OpenMPTimer.
virtual void lama::Timer::stopAndReset | ( | const std::string & | timerId | ) | [pure virtual] |
Stops and resets the timer.
[in] | timerId | the ID of the timer |
Implemented in lama::OpenMPTimer.