From f0fba1667882764d4fee426e0c14f6ec3e11cdbc Mon Sep 17 00:00:00 2001 From: WBoerenkamps Date: Sat, 7 Dec 2024 15:39:23 +0100 Subject: added line break --- src/crepe/manager/LoopTimerManager.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/crepe') diff --git a/src/crepe/manager/LoopTimerManager.cpp b/src/crepe/manager/LoopTimerManager.cpp index 9bf30ae..e30b90d 100644 --- a/src/crepe/manager/LoopTimerManager.cpp +++ b/src/crepe/manager/LoopTimerManager.cpp @@ -63,6 +63,7 @@ int LoopTimerManager::get_fps() const { return this->actual_fps; } void LoopTimerManager::set_time_scale(double value) { this->time_scale = value; } double LoopTimerManager::get_time_scale() const { return this->time_scale; } + void LoopTimerManager::enforce_frame_rate() { auto current_frame_time = std::chrono::steady_clock::now(); auto frame_duration = current_frame_time - this->last_frame_time; -- cgit v1.2.3