# Class GTK1.Clock

Inheritance graph

Description

  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. `GTK1.Clock( GTK1.ClockRealtime );`

  `GTK1.Clock( GTK1.ClockDecreasing )->set_seconds(10000)->start();`

Inherit Label

  `inherit GTK1.Label : Label`

Method create

  `GTK1.Clock GTK1.Clock(`int` `type`)`

Description

  type is one of CLOCK_DECREASING, CLOCK_INCREASING and CLOCK_REALTIME;