> On Jun 29, 2024, at 5:43 PM, Adriaan van Os <adri...@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 _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal