---
name: "SDL::Timer"
section: "3pm"
platform: "linux"
package: "libsdl-perl"
version: "2.2.5-1+b1"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/SDL::Timer"
---

# SDL::Timer(3pm)

a SDL perl extension to handle timers

## NAME

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

## SYNOPSIS

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

## 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.

## AUTHOR

David J. Goehrig

## SEE ALSO

perl SDL
