diff options
Diffstat (limited to 'canvas/source/tools/elapsedtime.cxx')
-rw-r--r-- | canvas/source/tools/elapsedtime.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/canvas/source/tools/elapsedtime.cxx b/canvas/source/tools/elapsedtime.cxx index 1d6e53e36eac..f4f6e5db8a67 100644 --- a/canvas/source/tools/elapsedtime.cxx +++ b/canvas/source/tools/elapsedtime.cxx @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -66,7 +66,7 @@ double ElapsedTime::getSystemTime() // TEMP!!! // Awaiting corresponding functionality in OSL // - + // is there a performance counter available? static bool bTimeSetupDone( false ); static bool bPerfTimerAvailable( false ); @@ -78,7 +78,7 @@ double ElapsedTime::getSystemTime() // current sys time and nInitialCount exceeds IEEE double's // mantissa, time will start to run jerky. static LONGLONG nInitialCount; - + if( !bTimeSetupDone ) { if( QueryPerformanceFrequency( @@ -91,7 +91,7 @@ double ElapsedTime::getSystemTime() } bTimeSetupDone = true; } - + if( bPerfTimerAvailable ) { LONGLONG nCurrCount; @@ -112,7 +112,7 @@ double ElapsedTime::getSystemTime() // TODO(Q2): is 0 okay for the failure case here? double ElapsedTime::getSystemTime() { - TimeValue aTimeVal; + TimeValue aTimeVal; if( osl_getSystemTime( &aTimeVal ) ) return ((aTimeVal.Nanosec * 10e-10) + aTimeVal.Seconds); else @@ -184,7 +184,7 @@ double ElapsedTime::getElapsedTimeImpl() const { if (m_bInHoldMode || m_bInPauseMode) return m_fFrozenTime; - + return getCurrentTime() - m_fStartTime; } |