[fpc-pascal] Sub-millisecond time measuring

Hairy Pixels genericptr at gmail.com
Fri Jun 28 17:31:06 CEST 2024


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.


> On Jun 28, 2024, at 10:10 PM, Christo Crause <christo.crause at gmail.com> wrote:
> 
> 
> 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.

Regards,
	Ryan Joseph



More information about the fpc-pascal mailing list