GLib.Timeout.Add Method
Adds a GLib.TimeoutHandler delegate to the mainloop.

Syntax

public static uint Add (uint interval, TimeoutHandler hndlr)

Parameters

interval
the interval in milliseconds between invocations of hndlr.
hndlr
a delegate of type GLib.TimeoutHandler to invoke every interval.

Returns

an id representing the event source of the installed timeout handler.

Remarks

The delegate is invoked after the time period specified by interval. The delegate is invoked repeatedly until it returns false.

Invocation of the delegate may be delayed by other event processing, so this mechanism cannot be depended on for accurate timing. The interval to the next timeout is calculated at completion of the preceding timeout. There is no attempt made to "catch up" if an invocation is delayed.

Requirements

Namespace: GLib
Assembly: glib-sharp (in glib-sharp.dll)