The GtkClock widget provides an easy way of providing a textual
clock in your application. It supports realtime display, as well as
count up and count down modes. The clock widget could conceivably
be used in such applications as an application's status bar, or as
the basis for a panel applet, etc.
Three modes of operation are supported. These are realtime - which
displays the current time, count-up/increasing - which counts up
from an initial value (like a stopwatch), and count-down/decreasing
- which counts down from an initial value.
Note, however, that the accuracy of the gtkclock widget is limited
to 1 second.
GTK.Clock( GTK.ClockRealtime );
GTK.Clock( GTK.ClockDecreasing )->set_seconds(10000)->start();