18860eb2378c375ea717a74f6d260d3058262a4d
[sdlgit/SDL_perl.git] / lib / docs / Timer.pod
1 =pod
2
3
4 =head1 NAME
5
6 SDL::Timer - a SDL perl extension to handle timers
7
8 =head1 SYNOPSIS
9
10   $timer = new SDL::Timer { print "tick"; 4000; } -delay => 4000;
11
12 =head1 DESCRIPTION
13
14 C<SDL::Timer> provides an abstract interface to the SDL::Timer
15 callback code.  SDL::Timer::new requires a subroutine and a delay
16 at which is the initial interval between the creation of the
17 timer until the first call to the subroutine.  The subroutine
18 must return a value which is the delay until the it is called again.
19
20 =head1 AUTHOR
21
22 David J. Goehrig
23
24 =head1 SEE ALSO
25
26 L<perl> L<SDL>
27
28 =pod