[fpc-pascal] Sub-millisecond time measuring
Adriaan van Os
adriaan at adriaan.biz
Sat Jun 29 21:06:41 CEST 2024
Michael Van Canneyt via fpc-pascal wrote:
>> Is that a function in the RTL? I can't find it.
>
> No, these are platform-specific functions.
>
> g_get_monotonic_time is probably just an alias for the linux/freebsd
> unit functions clock_gettime(CLOCK_MONOTONIC_RAW).
g_get_monotonic_time is in glib <https://docs.gtk.org/glib/func.get_monotonic_time.html>
function g_get_monotonic_time: gint64; cdecl; external;
but it requires a bug fix when using gtk on MacOSX <https://bugzilla.gnome.org/show_bug.cgi?id=728123>
Regards,
Adriaan van Os
More information about the fpc-pascal
mailing list