diff options
Diffstat (limited to 'src/Utility.cpp')
-rw-r--r-- | src/Utility.cpp | 6 |
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(); +} |