---
name: "install_timer"
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/install_timer/3alleg4"
---

# install\_timer(3alleg4)

Installs the Allegro timer interrupt handler.

## NAME

install\_timer - Installs the Allegro timer interrupt handler.

## SYNOPSIS

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

**int install\_timer();**

## DESCRIPTION

Installs the Allegro timer interrupt handler. You must do this before  installing any user timer routines, and also before displaying a mouse  pointer, playing FLI animations or MIDI music, and using any of the GUI  routines.

## RETURN VALUE

Returns zero on success, or a negative number on failure (but you may decide not to check the return value as this function is very unlikely to fail).

## SEE ALSO

**remove\_timer**(3alleg4), **install\_int**(3alleg4)
