cleanup low-level time handling: only make adjustments to the clock that
the arch really needs; Unix gettimeofday does not loop like Win32 timeGetTime so don't mess with it
This commit is contained in:
@@ -143,7 +143,10 @@ static int64_t GetMicrosecondsSinceEpoch()
|
||||
int64_t ArchHooks::GetMicrosecondsSinceStart( bool bAccurate )
|
||||
{
|
||||
static int64_t iStartTime = GetMicrosecondsSinceEpoch();
|
||||
return GetMicrosecondsSinceEpoch() - iStartTime;
|
||||
int64_t ret = GetMicrosecondsSinceEpoch() - iStartTime;
|
||||
if( bAccurate )
|
||||
ret = FixupTimeIfBackwards( ret );
|
||||
return ret;
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user