[Lazarus] How to program with time in milliseconds?

Henry Vermaak henry.vermaak at gmail.com
Thu May 15 11:43:13 CEST 2014


On Thu, May 15, 2014 at 09:40:44AM +0200, Michael Schnell wrote:
> At best, fpgettimeofday itself should be improved (maybe using
> "Performance counter" register if the Arch allows for or vDSO if the
> OS allows for).

Only the speed can be improved by calling into the vDSO, not the
precision.  You need to use clock_gettime() for nanosecond precision
(and to be unaffected by discontinuous clock changes).

Henry




More information about the Lazarus mailing list