Timer Class Reference
A timer class, used to time things in real world walltime. More...
#include <common/common.hh>
Public Member Functions | |
| Timer () | |
| Constructor. More... | |
| virtual | ~Timer () |
| Destructor. More... | |
| Time | Elapsed () const |
| Get the elapsed time. More... | |
| bool | Running () const |
| Returns true if the timer is running. More... | |
| virtual void | Start () |
| Start the timer. More... | |
| virtual void | Stop () |
| Stop the timer. More... | |
Detailed Description
A timer class, used to time things in real world walltime.
Constructor & Destructor Documentation
◆ Timer()
| Timer | ( | ) |
Constructor.
◆ ~Timer()
|
virtual |
Destructor.
Member Function Documentation
◆ Elapsed()
| Time Elapsed | ( | ) | const |
Get the elapsed time.
- Returns
- The 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: