[fpc-pascal] Sub-millisecond time measuring

Hairy Pixels genericptr at gmail.com
Sat Jun 29 01:50:36 CEST 2024



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


But that's still millisecond precision. Maybe this an OS problem more than anything. I'll check to see what C libraries exist on my system as I may need to go that route. I don't see anything in the FPC RTL that's sub-millisecond and there may be a reason for that.

Regards,
	Ryan Joseph



More information about the fpc-pascal mailing list