summaryrefslogtreecommitdiffstats
path: root/src/Utility.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Utility.cpp')
-rw-r--r--src/Utility.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/Utility.cpp b/src/Utility.cpp
index 9fecc08..b4e1d99 100644
--- a/src/Utility.cpp
+++ b/src/Utility.cpp
@@ -71,3 +71,11 @@ LoopExecutionTimeController::duration LoopExecutionTimeController::GetDelta() {
//std::cerr<<duration(now-previousUpdate).count()<<std::endl;
return duration(now-previousUpdate);
}
+
+double LoopExecutionTimeController::GetDeltaS()
+{
+ auto now = clock::now();
+ return std::chrono::duration<double, std::ratio<1, 1>>(now - previousUpdate).count();
+}
+
+