PropWare
2.1.2
C++ objects and CMake build system for Parallax Propeller
|
Click here for docs on the
develop
branch.
#include <stopwatch.h>
Public Member Functions | |
void | Reset (void) |
void | Start (void) |
int | GetElapsed (void) const |
bool | GetStarted (void) const |
Utility class for timing event duration.
Definition at line 29 of file stopwatch.h.
int libpropeller::Stopwatch::GetElapsed | ( | void | ) | const |
Get current stopwatch time (when started).
Definition at line 60 of file stopwatch.h.
bool libpropeller::Stopwatch::GetStarted | ( | void | ) | const |
Get started state.
Definition at line 72 of file stopwatch.h.
void libpropeller::Stopwatch::Reset | ( | void | ) |
Stop timing.
Definition at line 45 of file stopwatch.h.
void libpropeller::Stopwatch::Start | ( | void | ) |
Start timing. Can be called without calling reset first.
Definition at line 51 of file stopwatch.h.