kmx > IUP-0.101 > IUP::Timer

Download:
IUP-0.101.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Source   Latest Release: IUP-0.202

NAME ^

IUP::Timer - [special] periodicaly invokes a callback when the time is up

DESCRIPTION ^

Creates a timer which periodicaly invokes a callback when the time is up. Each timer should be destroyed using Destroy (or simply by undef $timer).

USAGE ^

CREATION - new() method

 $timer = IUP::Timer->new();

Returns: the identifier of the created element, or undef if an error occurs.

NOTE: You can pass to new() other ATTRIBUTE=>'value' or CALLBACKNAME=>\&func pairs relevant to this element - see IUP::Manual::02_Elements.

ATTRIBUTES

For more info about concept of attributes (setting/getting values etc.) see IUP::Manual::03_Attributes. Attributes specific to this element:

CALLBACKS

For more info about concept of callbacks (setting callback handlers etc.) see IUP::Manual::04_Callbacks. Callbacks specific to this element:

EXAMPLES ^

The element IUP::Timer is used in the following sample scripts:

SEE ALSO ^

The original doc: iuptimer.html

syntax highlighting: