A timer. More...
#include <Timings.h>
Public Types | |
enum | TimeUnit { Millisecond, Second, Minute, Hour, Day } |
Public Member Functions | |
Timer () | |
Creates an empty timer. | |
void | start () |
Starts the timer. | |
void | stop () |
Stops the timer. | |
float | elapsedTime (TimeUnit unit=Millisecond) const |
Returns the elapsed time. More... | |
boolean | isRunning () const |
Returns timer status. | |
A timer.
This class permits to measure time elapsed between two timestamps
float Tinker::Timer::elapsedTime | ( | TimeUnit | unit = Millisecond | ) | const |
Returns the elapsed time.