.\" Automatically generated by Pandoc 3.6.1 .\" .TH "al_create_timer" "3" "" "Allegro reference manual" .SH NAME al_create_timer \- Allegro 5 API .SH SYNOPSIS .IP .EX #include \f[B]\f[R] ALLEGRO_TIMER *al_create_timer(double speed_secs) .EE .SH DESCRIPTION Allocates and initializes a timer. If successful, a pointer to a new timer object is returned, otherwise NULL is returned. \f[I]speed_secs\f[R] is in seconds per \[lq]tick\[rq], and must be positive. The new timer is initially stopped and needs to be started with al_start_timer(3) before ALLEGRO_EVENT_TIMER(3) events are sent. .PP Usage note: typical granularity is on the order of microseconds, but with some drivers might only be milliseconds. .SH SEE ALSO al_start_timer(3), al_destroy_timer(3)