Rendering Engine 0.2.0
Modular Graphics Rendering Engine | v0.2.0
Loading...
Searching...
No Matches
app_time.hpp File Reference

Provides time tracking for the application runtime. More...

#include <chrono>

Go to the source code of this file.

Classes

class  rendering_engine::AppTime
 Manages current, total, and elapsed time for the application. More...

Namespaces

namespace  rendering_engine

Detailed Description

Provides time tracking for the application runtime.

AppTime measures and stores total and per-frame elapsed time using std::chrono::high_resolution_clock. It is typically used by the main game loop to calculate delta times and track total uptime.

Example:

AppTime time;
time.SetCurrentTime(std::chrono::high_resolution_clock::now());
float delta = time.ElapsedAppTimeMilliseconds();

Definition in file app_time.hpp.