bug fix
This commit is contained in:
parent
91548aacf6
commit
f892dc6312
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue