Photon 0.0.2 Simple Open Source 2D Game API |
TimerClass capable of keeping track of time. Time is returned in double format, in seconds. Summary
Timer
Initializes timer, timer is running starting at it’s creation. If this is not desired behavior call reset when you want it to start. Parameters
|
Initializes timer, timer is running starting at it’s creation.
Timer( bool appTimeLinked = true )
Virtual destructor, does nothing, exists only to make Timer inheritance safe.
virtual ~Timer()
Reset timer to 0, will unpause timer if paused.
void reset()
Pause timer.
void pause()
Unpause timer if paused.
void unpause()
Get time in seconds.
double getTime() const
Check paused/unpaused status of timer.
bool isPaused() const