OpenEnroth 73e68f7
Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | List of all members
Timer Class Reference

#include <Timer.h>

Inheritance diagram for Timer:
RawTimer

Public Member Functions

 Timer ()=default
 
void tick ()
 
bool isPaused () const
 
void setPaused (bool paused)
 
bool isTurnBased () const
 
void setTurnBased (bool turnBased)
 
Duration dt () const
 
Duration time () const
 

Private Member Functions

Duration platformTime ()
 

Additional Inherited Members

- Private Attributes inherited from RawTimer
bool _paused = false
 
bool _turnBased = false
 
Duration _lastFrameTime
 
Duration _dt
 
Duration _time
 

Constructor & Destructor Documentation

◆ Timer()

Timer::Timer ( )
default

Member Function Documentation

◆ dt()

Duration Timer::dt ( ) const
inline

◆ isPaused()

bool Timer::isPaused ( ) const
inline

◆ isTurnBased()

bool Timer::isTurnBased ( ) const
inline

◆ platformTime()

Duration Timer::platformTime ( )
private

◆ setPaused()

void Timer::setPaused ( bool  paused)

◆ setTurnBased()

void Timer::setTurnBased ( bool  turnBased)

◆ tick()

void Timer::tick ( )

◆ time()

Duration Timer::time ( ) const
inline

The documentation for this class was generated from the following files: