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