| dEngine
    Simple 2D C++ game engine | 
Time is used to help manage gametime, refresh rates, ticks and more. More...
#include <Time.h>
| Public Member Functions | |
| Time () | |
| void | StartTick () | 
| Perform a tick at the beginning of the frame.  More... | |
| void | EndTick () | 
| Perform a tick at the end of the frame.  More... | |
| Static Public Member Functions | |
| static Time & | GetInstance () | 
| Returns an instance to Time.  More... | |
| Public Attributes | |
| float | deltaTicks | 
| float | frameTicks | 
| The number of ticks per frame.  More... | |
| Private Attributes | |
| Uint32 | startTicks = 0 | 
| Uint32 | endTicks = 0 | 
| Static Private Attributes | |
| static Time | instance | 
Time is used to help manage gametime, refresh rates, ticks and more.
| Time::Time | ( | ) | 
| void Time::EndTick | ( | ) | 
Perform a tick at the end of the frame.
To be run at the end of the frame, logs the end tick of the frame and calculates the framerate
Referenced by dengine::Game::loop(), and Time().
| 
 | static | 
Returns an instance to Time.
Referenced by dengine::Game::loop().
| void Time::StartTick | ( | ) | 
Perform a tick at the beginning of the frame.
To be run at the beginning of a frame, logs the start tick of the frame
Referenced by dengine::Game::loop(), and Time().
| 
 | private | 
Referenced by EndTick().
| 
 | staticprivate | 
Referenced by GetInstance().
| 
 | private | 
Referenced by EndTick(), and StartTick().
 1.8.13
 1.8.13