This commit is contained in:
Volker Fischer 2013-03-03 21:38:23 +00:00
parent 91548aacf6
commit f892dc6312

View file

@ -135,9 +135,9 @@ void CHighPrecisionTimer::Start()
#if defined ( __APPLE__ ) || defined ( __MACOSX ) #if defined ( __APPLE__ ) || defined ( __MACOSX )
NextEnd = mach_absolute_time(); NextEnd = mach_absolute_time();
#else #else
clock_gettime ( CLOCK_MONOTONIC, NextEnd ); clock_gettime ( CLOCK_MONOTONIC, &NextEnd );
#endif #endif
NextEnd += Delay; NextEnd = NextEnd + Delay;
// start thread // start thread
QThread::start(); QThread::start();
@ -169,11 +169,11 @@ void CHighPrecisionTimer::run()
#else #else
clock_nanosleep ( CLOCK_MONOTONIC, clock_nanosleep ( CLOCK_MONOTONIC,
TIMER_ABSTIME, TIMER_ABSTIME,
NextEnd, &NextEnd,
NULL ); NULL );
#endif #endif
NextEnd += Delay; NextEnd = NextEnd + Delay;
} }
} }
#endif #endif