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 )
NextEnd = mach_absolute_time();
#else
clock_gettime ( CLOCK_MONOTONIC, NextEnd );
clock_gettime ( CLOCK_MONOTONIC, &NextEnd );
#endif
NextEnd += Delay;
NextEnd = NextEnd + Delay;
// start thread
QThread::start();
@ -169,11 +169,11 @@ void CHighPrecisionTimer::run()
#else
clock_nanosleep ( CLOCK_MONOTONIC,
TIMER_ABSTIME,
NextEnd,
&NextEnd,
NULL );
#endif
NextEnd += Delay;
NextEnd = NextEnd + Delay;
}
}
#endif