The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Reflex::Timer - An object that watches the passage of time.

VERSION

version 0.050

SYNOPSIS

        # 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";
        }

DESCRIPTION

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.

PUBLIC ATTRIBUTES

interval

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.

auto_repeat

A Boolean value. When true, Reflex::Timer will repeatedly fire "tick" events every interval seconds.

PUBLIC EVENTS

tick

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.

SEE ALSO

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