Timer Class Reference
A timer class, used to time things in real world walltime. More...
#include <common/common.hh>
Public Member Functions | |
Timer () | |
Constructor. | |
std::chrono::duration< double > | ElapsedTime () const |
Get the elapsed time. | |
bool | Running () const |
Returns true if the timer is running. | |
virtual void | Start () |
Start the timer. | |
virtual void | Stop () |
Stop the timer. | |
Detailed Description
A timer class, used to time things in real world walltime.
Constructor & Destructor Documentation
◆ Timer()
Timer | ( | ) |
Constructor.
Member Function Documentation
◆ ElapsedTime()
std::chrono::duration< double > ElapsedTime | ( | ) | const |
Get the elapsed time.
- Returns
- The elapsed time
◆ Running()
bool Running | ( | ) | const |
Returns true if the timer is running.
- Returns
- Tue if the timer has been started and not stopped.
◆ Start()
|
virtual |
Start the timer.
◆ Stop()
|
virtual |
Stop the timer.
The documentation for this class was generated from the following file: