[Lazarus] How to program with time in milliseconds?

Michael Schnell mschnell at lumino.de
Wed May 21 10:58:26 CEST 2014


On 05/19/2014 08:52 PM, Tom Lisjac wrote:
>
> There's no question that the component needs an update as the current 
> zip on the Lazarus-ccr was packaged in 2006. SVN is more current and 
> Graeme and I will get together and roll any additional improvements 
> he's made into a new release.
Great !
>
> If we need to make improvements to the core measurement routines for 
> better cross platform support, some additional input would be helpful. 
> For hardware timing, I see the following support across processor types:
>
> http://en.wikipedia.org/wiki/Hardware_performance_counter
Interesting read, indeed.
>
> There is a Performance API (PAPI) standard for cross platform access 
> to those counters, but probably not a candidate as it requires OS 
> support. Regarding OS based timing, my experience is limited to Linux 
> and Intel/AMD, so if there's a more universal approach, I'd be very 
> interested in learning more about it.

vDSO seems like the way to go in Linux. Here the Kernel is supposed to 
provide a fully user space function that accesses  the hardware provided 
by the arch or emulates it in the best possible way.

-Michael




More information about the Lazarus mailing list