See Also: Timeout Members
Use the Timeout.Add method to install timeout handlers into the mainloop.
C# Example
void StartClock ()
{
GLib.Timeout.Add(1000, new GLib.TimeoutHandler(update_status));
}
bool update_status ()
{
time_label.Text=DateTime.Now.ToString ();
//returning true means that the timeout routine should be invoked
//again after the timeout period expires. Returning false would
//terminate the timeout.
return true;
}