ALLEGRO_TIMER* al_create_timer(double speed_secs)
Introduced in 5.0.0
Install a new 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.
The system driver must be installed before this function can be called.
Usage note: typical granularity is on the order of microseconds, but with some drivers might only be milliseconds.
See also: al_start_timer, al_destroy_timer