From f24107368fa47f911f4491f644ff3755525c91e1 Mon Sep 17 00:00:00 2001 From: LaG1924 <12997935+LaG1924@users.noreply.github.com> Date: Sat, 19 Aug 2017 20:20:51 +0500 Subject: 2017-08-19 --- src/Utility.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/Utility.cpp') 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>(previousUpdate - previousPreviousUpdate).count(); } + +double LoopExecutionTimeController::RemainTimeMs() +{ + auto remain = delayLength - GetDelta(); + return remain.count(); +} -- cgit v1.2.3