On 05/18/2014 08:10 PM, Graeme Geldenhuys wrote:
{$IFDEF Windows} begin QueryPerformanceCounter(Result);
Did you check that this is a low overhead function ?
{$ELSE} do_syscall(syscall_nr_clock_gettime,TSysParam(CLOCK_MONOTONIC),TSysParam(@ts))
It seems that a syscall is not necessary with some / many environments.
vDSO seems to provide a user-land implementation in (many) current Kernel versions.
Maybe directly accessing the appropriate CPU registers is possible / viable in some architectures
-Michael -- _______________________________________________ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus