LoÃc Grenià on Sun, 03 Jun 2012 01:20:05 +0200

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]


   Hi pari developers,

   a patch has just been submitted to allow for a different timing function:
  clock_gettime. The accuracy of timing in libpari is 1ms. Under linux,
  getrusage and times accuracy are limited by kernel HZ constant which means
  that accuracy is 10ms if HZ=100, 4ms if HZ=250 or 1ms if HZ=1000.
  clock_gettime however has the accuracy of the underlying hardware clock,
  but the system call is slightly more costly.

    If you need better accuracy (and can spend ~15% more in clock_gettime than
  in getrusage) you can use clock_gettime. Otherwise just stick with the