Method

GLibSourceget_time_ns

unstable since: 2.90

Declaration [src]

uint64_t
g_source_get_time_ns (
  GSource* source
)

Description [src]

Gets the time to be used when checking this source.

The advantage of calling this function over calling g_get_monotonic_time_ns() directly is that when checking multiple sources, GLib can cache a single value instead of having to repeatedly get the system monotonic time.

The time here is the system monotonic time, if available, or some other reasonable alternative otherwise. See g_get_monotonic_time_ns().

Available since: 2.90

Return value

Type: uint64_t

The monotonic time in nanoseconds.