On 05/24/2014 01:55 PM, Graeme Geldenhuys wrote:
...

Finally I found that using theTSC supposedly in fact will not work reliabbly in SMP systems (which are ubiquitous right now).


http://linux.die.net/man/3/clock_gettime :
NOTE for SMP systems

The CLOCK_PROCESS_CPUTIME_ID and CLOCK_THREAD_CPUTIME_ID clocks are realized on many platforms using timers from the CPUs (TSC on i386, AR.ITC on Itanium). These registers may differ between CPUs and as a consequence these clocks may return bogus results if a process is migrated to another CPU.




.-Michael

--
_______________________________________________
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to