al_create_timer(3alleg5)

al_create_timer3alleg5

Allegro 5 api

Usage

#include <allegro5/allegro.h>
ALLEGRO_TIMER *al_create_timer(double speed_secs)

Overview

Allocates and initializes a timer. If successful, a pointer to a new timer object is returned, otherwise NULL is returned. speed_secs is in seconds per “tick”, and must be positive. The new timer is initially stopped and needs to be started with al_start_timer(3alleg5) before ALLEGRO_EVENT_TIMER(3alleg5) events are sent.

Usage note: typical granularity is on the order of microseconds, but with some drivers might only be milliseconds.

Releases

6 releases since Debian 8 (Jessie); the text changed 5 times.

  1. 8
  2. 9
  3. 10
  4. 11
  5. 12
  6. 13

From allegro5-doc 2:5.2.10.1+dfsg-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.