A stop watch class, that inherits from StateMachine. More...
#include <stopwatch.h>
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.