33 #ifndef H_COEDEUTIL_CLOCK_INCLUDED
34 #define H_COEDEUTIL_CLOCK_INCLUDED
38 #include <Dynacoe/Component.h>
85 void Set(
int msToExpire = -1);
int GetTimeLeft()
Returns the ms until the timer expires.
Clock()
Initializes the timer with no expiration time.
Timing class with millisecond resolution.
Definition: Clock.h:59
bool IsPaused()
Returns whether or not this time is paused.
void Pause()
Pauses timing.
int GetDuration()
Returns the duration of the clock.
bool IsExpired()
Returns whether or not time has run out on the timer.
std::string GetInfo()
Returns a string containing human-readable information on the state of the component.
void Set(int msToExpire=-1)
Resets the timer with the time it should expire.
void Reset()
Resets the timer with the previously used time limit.
Class that extends the functionality of an Entity, but as a removable and addable object...
Definition: Component.h:66
void Resume()
Resumes timing.
int GetTimeSince()
Returns the ms since the start of timing.