[fpc-pascal] Sub-millisecond time measuring

Christo Crause christo.crause at gmail.com
Fri Jun 28 17:44:30 CEST 2024


On Fri, Jun 28, 2024 at 5:31 PM Hairy Pixels via fpc-pascal <
fpc-pascal at lists.freepascal.org> wrote:

> Thanks I'll check that out. I'm not using Lazarus so tons of dependencies
> won't work but maybe I can learn something. I'm on macOS too so if this is
> using system calls it may not be supported.
>

It is based on TComponent from the RTL classes unit, so no dependency on
LCL or other Lazarus units.  A quick check of the source code suggests that
it will probably call GetTickCount64 (
https://github.com/graemeg/epiktimer/blob/master/epiktimer.pas#L419C15-L419C29)
on macOS.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20240628/0a408d8a/attachment.htm>


More information about the fpc-pascal mailing list