GEOS
|
Class defining a simple stopwatch for interval timing. More...
#include <Stopwatch.hpp>
Public Member Functions | |
Stopwatch () | |
Constructor. | |
Stopwatch (real64 &resultVar) | |
Constructor. More... | |
~Stopwatch () | |
Destructor. | |
void | zero () |
Zero out the timer. | |
real64 | elapsedTime () |
Return elapsed time in seconds since zero() was last called. More... | |
Class defining a simple stopwatch for interval timing.
Definition at line 32 of file Stopwatch.hpp.
|
inline |
Constructor.
resultVar | reference to the variable that will store the result upon destruction (a common use case). |
Definition at line 48 of file Stopwatch.hpp.
|
inline |
Return elapsed time in seconds since zero() was last called.
Definition at line 77 of file Stopwatch.hpp.