|
MochiEngine
|
Utility class to count the pass of time. If ticked each frame, IsDone will return true when the time parameter in the construction has passed. It will also show the passed time like a Chrono in GetTime and the difference between the construction time and GetTime with GetRemainingTime. More...
#include <Timer.h>
Public Member Functions | |
| float | GetTime () const |
| float | GetRemainingTime () const |
| bool | IsDone () const |
| Timer (const float &time) | |
| void | Tick (const float &dt) |
Utility class to count the pass of time. If ticked each frame, IsDone will return true when the time parameter in the construction has passed. It will also show the passed time like a Chrono in GetTime and the difference between the construction time and GetTime with GetRemainingTime.