MochiEngine
Loading...
Searching...
No Matches
Mochi::Time::Timer Class Reference

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)

Detailed Description

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.


The documentation for this class was generated from the following files:
  • Engine/src/Time/Timer.h
  • Engine/src/Time/Timer.cpp