Blowbox 2017
A 3D Game Engine by Riko Ophorst using DirectX 12
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
blowbox::Time Class Reference

#include <time.h>

Public Member Functions

void NewFrame ()
 

Static Public Member Functions

static float GetDeltaTime ()
 
static double GetDeltaTimeAsDouble ()
 
static float GetProcessTime ()
 
static double GetProcessTimeAsDouble ()
 

Private Attributes

double initialization_time_
 
double delta_time_
 
double frame_start_time_
 
double process_time_
 

Detailed Description

Manages the time in Blowbox.

Member Function Documentation

float blowbox::Time::GetDeltaTime ( )
static
Returns
The delta time as a float.
double blowbox::Time::GetDeltaTimeAsDouble ( )
static
Returns
The delta time as a double.
float blowbox::Time::GetProcessTime ( )
static
Returns
The process time as a float.
double blowbox::Time::GetProcessTimeAsDouble ( )
static
Returns
The process time as a double.
void blowbox::Time::NewFrame ( )

Indicate to the Time instance that a new frame has begun.

Member Data Documentation

double blowbox::Time::delta_time_
private

The current delta time.

double blowbox::Time::frame_start_time_
private

The current frame's start time.

double blowbox::Time::initialization_time_
private

The time at which the Time instance was created.

double blowbox::Time::process_time_
private

The time the process has been alive for.


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