My Project
Loading...
Searching...
No Matches
Engine::TimeManager Class Reference

Manages time tracking for the engine. Computes delta time between frames and the current FPS. More...

#include <TimeManager.hpp>

Public Member Functions

void Init ()
 Initializes the time manager and sets the starting time.
void Update ()
 Updates the delta time and FPS. Call once per frame.
float GetDeltaTime () const
 Returns the delta time (time elapsed since last frame) in seconds.
float GetFPS () const
 Returns the current frames per second.

Detailed Description

Manages time tracking for the engine. Computes delta time between frames and the current FPS.

Member Function Documentation

◆ GetDeltaTime()

float Engine::TimeManager::GetDeltaTime ( ) const

Returns the delta time (time elapsed since last frame) in seconds.

Returns
Delta time in seconds

◆ GetFPS()

float Engine::TimeManager::GetFPS ( ) const
inline

Returns the current frames per second.

Returns
FPS

◆ Init()

void Engine::TimeManager::Init ( )

Initializes the time manager and sets the starting time.

◆ Update()

void Engine::TimeManager::Update ( )

Updates the delta time and FPS. Call once per frame.


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