A stop watch class, that inherits from StateMachine. More...
#include <stopwatch.h>
Inheritance diagram for stopwatch::StopWatch:
Collaboration diagram for stopwatch::StopWatch:Public Member Functions | |
| StopWatch () | |
| Make a new stopwatch. | |
| void | begin () |
| Start the stopwatch. | |
| void | reset () |
| Reset the stopwatch to zero and erase laps. | |
| void | stop () |
| Stop the stopwatch. | |
| void | lap () |
| Add a lap time to the list of lap times. | |
| high_resolution_clock::duration | value () |
| Get the time stored by the stopwatch. | |
|
const vector < high_resolution_clock::duration > & | laps () |
| Get a list of lap times. | |
A stop watch class, that inherits from StateMachine.
Definition at line 16 of file stopwatch.h.
1.8.8