From df4d41da4a4dc37570891c81e8548bf13a430802 Mon Sep 17 00:00:00 2001 From: Steve Checkoway Date: Tue, 18 Jul 2006 04:19:25 +0000 Subject: [PATCH] Simplify. GetMicrosecondsSinceStart need not actually be set to the beginning of SM. That's handled elsewhere. --- stepmania/src/arch/ArchHooks/ArchHooks_darwin.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/stepmania/src/arch/ArchHooks/ArchHooks_darwin.cpp b/stepmania/src/arch/ArchHooks/ArchHooks_darwin.cpp index bb772a0cda..72821b3bc2 100644 --- a/stepmania/src/arch/ArchHooks/ArchHooks_darwin.cpp +++ b/stepmania/src/arch/ArchHooks/ArchHooks_darwin.cpp @@ -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"