My Elma Project
An event loop manager for embedded systems
 All Classes Functions
Public Member Functions | List of all members
stopwatch::StopWatch Class Reference

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.
 

Detailed Description

A stop watch class, that inherits from StateMachine.

Definition at line 16 of file stopwatch.h.


The documentation for this class was generated from the following files: