timeoutSourceNewSeconds

fun timeoutSourceNewSeconds(interval: <Error class: unknown class>): Source

Creates a new timeout source.

The source will not initially be associated with any struct@GLib.MainContext and must be added to one with method@GLib.Source.attach before it will be executed.

The scheduling granularity/accuracy of this timeout source will be in seconds.

The interval given is in terms of monotonic time, not wall clock time. See func@GLib.get_monotonic_time.

Return

the newly-created timeout source

Since

2.14

Parameters

interval

the timeout interval in seconds