Skip to content
Permalink
Browse files
Merge pull request #8922 from Filoppi/timer-fixes
Timer fixes
  • Loading branch information
Tilka committed Jul 12, 2020
2 parents 3c70fb7 + 4b5ca99 commit 695a964
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
@@ -118,10 +118,9 @@ void Timer::AddTimeDifference()
// Get the time elapsed since the Start()
u64 Timer::GetTimeElapsed()
{
// If we have not started yet, return 1 (because then I don't
// have to change the FPS calculation in CoreRerecording.cpp .
// If we have not started yet, return zero
if (m_StartTime == 0)
return 1;
return 0;

// Return the final timer time if the timer is stopped
if (!m_Running)
@@ -23,6 +23,8 @@ class Timer
u64 GetTimeDifference();
void AddTimeDifference();

bool IsRunning() const { return m_Running; }

static void IncreaseResolution();
static void RestoreResolution();
static u64 GetTimeSinceJan1970();

0 comments on commit 695a964

Please sign in to comment.