NWengine 0.9
Loading...
Searching...
No Matches
NWTime Class Reference

The NWTime class represents the time-related functionality. More...

#include <NWTime.h>

Static Public Member Functions

static void Init ()
 Initializes the NWTime class.
 
static void Update ()
 Updates the NWTime class.
 
static const double & GetDeltaTime ()
 Gets the delta time.
 
static const double & GetFPS ()
 Gets the frames per second.
 

Static Public Attributes

static double _deltaTime = 0.0
 
static double _FPS = 15
 
static int _frameCount = 0
 
static NWin::timeMl _currentTime = 0
 
static NWin::timeMl _lastTime = 0
 
static NWin::timeMl _lastTime2 = 0
 
static double _deltaTimeSum = 0
 

Detailed Description

The NWTime class represents the time-related functionality.

Member Function Documentation

◆ GetDeltaTime()

const double & NWTime::GetDeltaTime ( )
static

Gets the delta time.

Returns
The delta time.

◆ GetFPS()

const double & NWTime::GetFPS ( )
static

Gets the frames per second.

Returns
The frames per second.

Member Data Documentation

◆ _currentTime

NWin::timeMl NWTime::_currentTime = 0
static

The current time.

◆ _deltaTime

double NWTime::_deltaTime = 0.0
static

The time difference between the current frame and the previous frame.

◆ _deltaTimeSum

double NWTime::_deltaTimeSum = 0
static

The sum of all delta times.

◆ _FPS

double NWTime::_FPS = 15
static

The frames per second.

◆ _frameCount

int NWTime::_frameCount = 0
static

The number of frames rendered.

◆ _lastTime

NWin::timeMl NWTime::_lastTime = 0
static

The time of the previous frame.

◆ _lastTime2

NWin::timeMl NWTime::_lastTime2 = 0
static

The time of the frame before the previous frame.


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