summaryrefslogtreecommitdiff
path: root/Source/Core/Common/Src/Timer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core/Common/Src/Timer.cpp')
-rw-r--r--Source/Core/Common/Src/Timer.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/Source/Core/Common/Src/Timer.cpp b/Source/Core/Common/Src/Timer.cpp
index 28eb67c33b..7eebddced3 100644
--- a/Source/Core/Common/Src/Timer.cpp
+++ b/Source/Core/Common/Src/Timer.cpp
@@ -91,11 +91,17 @@ s64 Timer::GetTimeDifference(void)
return(timeGetTime() - m_LastTime);
}
-// Add the time difference since the last Update() to the starting time
+/* Add the time difference since the last Update() to the starting time. This is used to compensate
+ for a paused game. */
void Timer::AddTimeDifference()
{
m_StartTime += GetTimeDifference();
}
+// Wind back the starting time to a custom time
+void Timer::WindBackStartingTime(u64 WindBack)
+{
+ m_StartTime += WindBack;
+}
// Get the time elapsed since the Start()
u64 Timer::GetTimeElapsed(void)