Date and Time Functions

G-Golf GLib Date and Time Functions API.
Date and Time Functions — calendrical calculations and miscellaneous time stuff

Procedures

g-get-monotonic-time

Description

The upstream description (which G-Golf usually copies and presents ’unchanged’) talks about the GDate data structure representation and api. As from this section, G-Golf only binds the g-get-monotonic-time, we skip it entirely.

Procedures

Procedure: g-get-monotonic-time

Returns the monotonic time, in microseconds.

Queries the system monotonic time, if available.

On POSIX systems with clock_gettime() and CLOCK_MONOTONIC this call is a very shallow wrapper for that. Otherwise, we make a best effort that probably involves returning the wall clock time (with at least microsecond accuracy, subject to the limitations of the OS kernel).

Note that, on Windows, "limitations of the OS kernel" is a rather substantial statement. Depending on the configuration of the system, the wall clock time is updated as infrequently as 64 times a second (which is approximately every 16ms).