Function

GLibtimeout_source_new_ns

unstable since: 2.90

Declaration [src]

GSource*
g_timeout_source_new_ns (
  uint64_t interval
)

Description [src]

Creates a new timeout source.

The source will not initially be associated with any GMainContext and must be added to one with g_source_attach() before it will be executed.

The interval given is in terms of monotonic time, not wall clock time. See g_get_monotonic_time_ns().

Available since: 2.90

Parameters

interval

Type: uint64_t

The timeout interval in nanoseconds.

Return value

Type: GSource

The newly-created timeout source.

The caller of the function takes ownership of the data, and is responsible for freeing it.