[Lazarus] How to program with time in milliseconds?

Tom Lisjac zikon770 at gmail.com
Mon May 19 20:52:22 CEST 2014


On Mon, May 19, 2014 at 11:54 AM, Graeme Geldenhuys <
mailinglists at geldenhuys.co.uk> wrote:

> On 2014-05-19 11:03, Michael Schnell wrote:
> > Obviously I can't _use_ EpricTimer there, as it uses (IMHO
> > inappropriately) (graphics-) stuff that is not implemented in a non-GUI
> > project.
>
> You are clearly using a very outdated version. That was fixed 2+ years
> ago. Get the latest code from SubVersion instead of the ZIP download.
>
>
>
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.

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

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.

Thanks,

-Tom
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20140519/b44e75d1/attachment-0003.html>


More information about the Lazarus mailing list