---
name: "extimer"
section: "3alleg4"
platform: "linux"
package: "allegro4-doc"
version: "2:4.4.3.1-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/extimer/3alleg4"
---

# extimer(3alleg4)

Using the timer (delays and interrupts). Allegro game programming library.

## NAME

extimer - Using the timer (delays and interrupts). Allegro game programming library.

## SYNOPSIS

**#include \<allegro.h\>**

**Example extimer**

## DESCRIPTION

This program demonstrates how to use the timer routines. These can be a bit of a pain, because you have to be sure you lock all the memory that is used inside your interrupt handlers.  The first part of the example shows a basic use of timing using the blocking function rest(). The second part shows how to use three timers with different frequencies in a non blocking way.

## SEE ALSO

**END\_OF\_FUNCTION**(3alleg4), **END\_OF\_MAIN**(3alleg4), **LOCK\_FUNCTION**(3alleg4), **LOCK\_VARIABLE**(3alleg4), **SCREEN\_W**(3alleg4), **allegro\_error**(3alleg4), **allegro\_init**(3alleg4), **allegro\_message**(3alleg4), **clear\_to\_color**(3alleg4), **desktop\_palette**(3alleg4), **font**(3alleg4), **install\_int**(3alleg4), **install\_int\_ex**(3alleg4), **install\_keyboard**(3alleg4), **install\_timer**(3alleg4), **key**(3alleg4), **keypressed**(3alleg4), **makecol**(3alleg4), **readkey**(3alleg4), **rest**(3alleg4), **screen**(3alleg4), **set\_gfx\_mode**(3alleg4), **set\_palette**(3alleg4), **textprintf\_centre\_ex**(3alleg4)
