Arcade Shooter
Public Member Functions | Friends | List of all members
KatanaEngine::GameTime Class Reference

Contains timing values for game updates and rendering. More...

#include <GameTime.h>

Public Member Functions

double GetTimeElapsed () const
 Gets the time in seconds since last frame. More...
 
double GetTotalTime () const
 Gets the time in seconds since the game started. More...
 

Friends

class Game
 

Detailed Description

Contains timing values for game updates and rendering.

Member Function Documentation

◆ GetTimeElapsed()

double KatanaEngine::GameTime::GetTimeElapsed ( ) const
inline

Gets the time in seconds since last frame.

Returns
Returns the number of seconds since the last frame.

◆ GetTotalTime()

double KatanaEngine::GameTime::GetTotalTime ( ) const
inline

Gets the time in seconds since the game started.

Returns
Returns the number of seconds since the game started.

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