summaryrefslogtreecommitdiffstats
path: root/src/Utility.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Utility.cpp')
-rw-r--r--src/Utility.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Utility.cpp b/src/Utility.cpp
index 655c26f..30561c4 100644
--- a/src/Utility.cpp
+++ b/src/Utility.cpp
@@ -81,3 +81,9 @@ double LoopExecutionTimeController::GetRealDeltaS()
{
return std::chrono::duration<double,std::ratio<1,1>>(previousUpdate - previousPreviousUpdate).count();
}
+
+double LoopExecutionTimeController::RemainTimeMs()
+{
+ auto remain = delayLength - GetDelta();
+ return remain.count();
+}