SDL::Timer - a SDL perl extension to handle timers


Back to Top


NAME

SDL::Timer - a SDL perl extension to handle timers

Back to Top


SYNOPSIS

  $timer = new SDL::Timer { print "tick"; 4000; } -delay => 4000;

Back to Top


DESCRIPTION

SDL::Timer provides an abstract interface to the SDL::Timer callback code. SDL::Timer::new requires a subroutine and a delay at which is the initial interval between the creation of the timer until the first call to the subroutine. The subroutine must return a value which is the delay until the it is called again.

Back to Top


AUTHOR

David J. Goehrig

Back to Top


SEE ALSO

perl the SDL manpage

Back to Top

 SDL::Timer - a SDL perl extension to handle timers