AireEngine
A 3D Open-World Game Engine
Loading...
Searching...
No Matches
Public Member Functions | List of all members
Aire::Clock Class Reference

Simple clock class. More...

#include <clock.h>

Public Member Functions

 Clock ()
 Create a new clock. It tracks time passed since creation (in seconds).
 
void reset ()
 
void update ()
 Reset the clock and update dt (time since the last update).
 
double t () const
 
float dt () const
 

Detailed Description

Simple clock class.

Member Function Documentation

◆ dt()

float Aire::Clock::dt ( ) const
inline

Get the time delta (in seconds) recorded at the last clock update.

Returns
Time delta at the last update.

◆ reset()

void Aire::Clock::reset ( )
inline

Resert the clock without updating dt. Acts as if the clock was just created.

◆ t()

double Aire::Clock::t ( ) const
inline

Get the time (in seconds) that was recorded at the last clock update.

Returns
Time at last update
Here is the caller graph for this function:

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