[fpc-pascal] Sub-millisecond time measuring

Christo Crause christo.crause at gmail.com
Fri Jun 28 17:10:36 CEST 2024


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

> I had a large function which I was profiling with MilliSecondsBetween but
> I split it to be called many different times and now it's not accumulating
> the total time correctly because time is being lost to due millisecond
> precision.
>
> Is there anything in the RTL I can use which is more accurate? I searched
> and couldn't find anything.
>

In the past I've used EpikTimer (https://wiki.freepascal.org/EpikTimer), it
is cross platform and works well, at least for my casual use.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20240628/5739be01/attachment.htm>


More information about the fpc-pascal mailing list