commit
695a96498a
|
@ -118,10 +118,9 @@ void Timer::AddTimeDifference()
|
||||||
// Get the time elapsed since the Start()
|
// Get the time elapsed since the Start()
|
||||||
u64 Timer::GetTimeElapsed()
|
u64 Timer::GetTimeElapsed()
|
||||||
{
|
{
|
||||||
// If we have not started yet, return 1 (because then I don't
|
// If we have not started yet, return zero
|
||||||
// have to change the FPS calculation in CoreRerecording.cpp .
|
|
||||||
if (m_StartTime == 0)
|
if (m_StartTime == 0)
|
||||||
return 1;
|
return 0;
|
||||||
|
|
||||||
// Return the final timer time if the timer is stopped
|
// Return the final timer time if the timer is stopped
|
||||||
if (!m_Running)
|
if (!m_Running)
|
||||||
|
|
|
@ -23,6 +23,8 @@ public:
|
||||||
u64 GetTimeDifference();
|
u64 GetTimeDifference();
|
||||||
void AddTimeDifference();
|
void AddTimeDifference();
|
||||||
|
|
||||||
|
bool IsRunning() const { return m_Running; }
|
||||||
|
|
||||||
static void IncreaseResolution();
|
static void IncreaseResolution();
|
||||||
static void RestoreResolution();
|
static void RestoreResolution();
|
||||||
static u64 GetTimeSinceJan1970();
|
static u64 GetTimeSinceJan1970();
|
||||||
|
|
Loading…
Reference in New Issue