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 )
|
#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
|
||||||
|
|
Loading…
Reference in a new issue