---
name: "extimer"
section: "3alleg"
platform: "linux"
package: "liballegro-doc"
version: "2:4.2.2-2.2"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/extimer"
---

# extimer(3alleg)

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**(3alleg)](/END_OF_FUNCTION/3alleg.md), [**END\_OF\_MAIN**(3alleg)](/END_OF_MAIN/3alleg.md), [**LOCK\_FUNCTION**(3alleg)](/LOCK_FUNCTION/3alleg.md), [**LOCK\_VARIABLE**(3alleg)](/LOCK_VARIABLE/3alleg.md), [**SCREEN\_W**(3alleg)](/SCREEN_W/3alleg.md), [**allegro\_error**(3alleg)](/allegro_error/3alleg.md), [**allegro\_init**(3alleg)](/allegro_init/3alleg.md), [**allegro\_message**(3alleg)](/allegro_message/3alleg.md), [**clear\_to\_color**(3alleg)](/clear_to_color/3alleg.md), [**desktop\_palette**(3alleg)](/desktop_palette/3alleg.md), [**font**(3alleg)](/font/3alleg.md), [**install\_int**(3alleg)](/install_int/3alleg.md), [**install\_int\_ex**(3alleg)](/install_int_ex/3alleg.md), [**install\_keyboard**(3alleg)](/install_keyboard/3alleg.md), [**install\_timer**(3alleg)](/install_timer/3alleg.md), [**key**(3alleg)](/key/3alleg.md), [**keypressed**(3alleg)](/keypressed/3alleg.md), [**makecol**(3alleg)](/makecol/3alleg.md), [**readkey**(3alleg)](/readkey/3alleg.md), [**rest**(3alleg)](/rest/3alleg.md), [**screen**(3alleg)](/screen/3alleg.md), [**set\_gfx\_mode**(3alleg)](/set_gfx_mode/3alleg.md), [**set\_palette**(3alleg)](/set_palette/3alleg.md), [**textprintf\_centre\_ex**(3alleg)](/textprintf_centre_ex/3alleg.md)
