Stopwatch implementation to measure elapsed time.
More...
#include <Stopwatch.hpp>
Stopwatch implementation to measure elapsed time.
◆ elapsed()
double Stopwatch::elapsed |
( |
| ) |
const |
|
inline |
◆ reset()
void Stopwatch::reset |
( |
| ) |
|
|
inline |
Stops the timer and sets elapsed time to zero.
◆ resume()
void Stopwatch::resume |
( |
| ) |
|
|
inline |
Continues the stop watch from when it was stopped.
◆ start()
void Stopwatch::start |
( |
| ) |
|
|
inline |
◆ stop()
double Stopwatch::stop |
( |
| ) |
|
|
inline |
Stops the timer.
- Returns
- Elapsed time in seconds.
◆ elapsed_
double Stopwatch::elapsed_ {0} |
|
protected |
◆ running_
bool Stopwatch::running_ {false} |
|
protected |
The documentation for this class was generated from the following file: