logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

al_create_timer - Allegro 5 API

Description

       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.

Name

       al_create_timer - Allegro 5 API

See Also

al_start_timer(3alleg5), al_destroy_timer(3alleg5)

Allegro reference manual                                                                al_create_timer(3alleg5)

Synopsis

              #include <allegro5/allegro.h>

              ALLEGRO_TIMER *al_create_timer(double speed_secs)

See Also