1#ifndef YAZE_APP_CORE_TIMING_H
2#define YAZE_APP_CORE_TIMING_H
29 uint64_t current_time = SDL_GetPerformanceCounter();
30 float delta_time = 0.0f;
36 if (delta_time > 0.1f) {
75 uint64_t current_time = SDL_GetPerformanceCounter();
Provides accurate timing for animations and frame pacing.
void Reset()
Reset the timing state.
static TimingManager & Get()
float Update()
Update the timing manager (call once per frame)
float GetDeltaTime() const
Get the last frame's delta time in seconds.
TimingManager & operator=(const TimingManager &)=delete
float GetElapsedTime() const
Get total elapsed time since first update.
TimingManager(const TimingManager &)=delete
float GetFPS() const
Get current FPS.
Main namespace for the application.