Reflex::Timer - An object that watches the passage of time.
version 0.050
# Several examples in the eg directory use Reflex::Timer. use warnings; use strict; use lib qw(../lib); use Reflex::Timer; my $t = Reflex::Timer->new( interval => 1, auto_repeat => 1, ); while (my $event = $t->next()) { print "next() returned an event (@$event)\n"; }
Reflex::Timer emits events to mark the passage of time. Its interface is new and small. Please contact the Reflex project if you need other features, or send us a pull request at github or gitorious.
Define the interval between creation and the "tick" event's firing. If auto_repeat is also set, this becomes the interval between recurring "tick" events.
A Boolean value. When true, Reflex::Timer will repeatedly fire "tick" events every interval seconds.
Reflex::Timer emits "tick" events. We're looking for a better name, so this may change in the future. Your suggestions can help solidify the interface quicker.
Reflex
"ACKNOWLEDGEMENTS" in Reflex "ASSISTANCE" in Reflex "AUTHORS" in Reflex "BUGS" in Reflex "BUGS" in Reflex "CONTRIBUTORS" in Reflex "COPYRIGHT" in Reflex "LICENSE" in Reflex "TODO" in Reflex
To install Reflex, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Reflex
CPAN shell
perl -MCPAN -e shell install Reflex
For more information on module installation, please visit the detailed CPAN module installation guide.