---
name: "al_start_timer"
section: "3alleg5"
platform: "linux"
package: "allegro5-doc"
version: "2:5.2.10.1+dfsg-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/al_start_timer/3alleg5"
---

# al\_start\_timer(3alleg5)

Allegro 5 API

## NAME

al\_start\_timer - Allegro 5 API

## SYNOPSIS

-

  ```
  #include <allegro5/allegro.h>
  void al_start_timer(ALLEGRO_TIMER *timer)
  ```

## DESCRIPTION

Start the timer specified. From then, the timer’s counter will increment at a constant rate, and it will begin generating events. Starting a timer that is already started does nothing. Starting a timer that was stopped will reset the timer’s counter, effectively restarting the timer from the beginning.

## SEE ALSO

al\_stop\_timer(3alleg5), al\_get\_timer\_started(3alleg5), al\_resume\_timer(3alleg5)
