Simplify. GetMicrosecondsSinceStart need not actually be set to the beginning of SM. That's handled elsewhere.

This commit is contained in:
Steve Checkoway
2006-07-18 04:19:25 +00:00
parent 11cff15f6f
commit df4d41da4a
@@ -399,7 +399,6 @@ bool ArchHooks_darwin::GoToURL( RString sUrl )
int64_t ArchHooks::GetMicrosecondsSinceStart( bool bAccurate )
{
// http://developer.apple.com/qa/qa2004/qa1398.html
static uint64_t iStartTime = mach_absolute_time();
static double factor = 0.0;
if( unlikely(factor == 0.0) )
@@ -409,7 +408,7 @@ int64_t ArchHooks::GetMicrosecondsSinceStart( bool bAccurate )
mach_timebase_info( &timeBase );
factor = timeBase.numer / ( 1000.0 * timeBase.denom );
}
return int64_t( (mach_absolute_time() - iStartTime) * factor );
return int64_t( mach_absolute_time() * factor );
}
#include "RageFileManager.h"