[fpc-pascal] Sub-millisecond time measuring
Hairy Pixels
genericptr at gmail.com
Sat Jun 29 14:43:34 CEST 2024
> On Jun 29, 2024, at 5:43 PM, Adriaan van Os <adriaan at adriaan.biz> wrote:
>
> Hairy Pixels via fpc-pascal 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.
>
> You can use Microseconds on MacOS, QueryPerformanceFrequency on Windows and g_get_monotonic_time with gtk on Linux.
>
> Regards,
>
> Adriaan van Os
>
Is that a function in the RTL? I can't find it.
Regards,
Ryan Joseph
More information about the fpc-pascal
mailing list