6 SDL::Timer - a SDL perl extension to handle timers
10 $timer = new SDL::Timer { print "tick"; 4000; } -delay => 4000;
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.