1al_create_timer(3) al_create_timer(3)
2
3
4
6 al_create_timer - Allegro 5 API
7
9 #include <allegro5/allegro.h>
10
11 ALLEGRO_TIMER *al_create_timer(double speed_secs)
12
14 Allocates and initializes a timer. If successful, a pointer to a new
15 timer object is returned, otherwise NULL is returned. speed_secs is in
16 seconds per “tick”, and must be positive. The new timer is initially
17 stopped.
18
19 Usage note: typical granularity is on the order of microseconds, but
20 with some drivers might only be milliseconds.
21
23 al_start_timer(3), al_destroy_timer(3)
24
25
26
27Allegro reference manual al_create_timer(3)