Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
al_create_timer(3)	    Library Functions Manual	      al_create_timer(3)

NAME
     al_create_timer - Allegro 5 API

SYNOPSIS
	    #include <allegro5/allegro.h>

	    ALLEGRO_TIMER *al_create_timer(double speed_secs)

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(3) before ALLEGRO_EVENT_TIMER(3)
     events are sent.

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

SEE ALSO
     al_start_timer(3), al_destroy_timer(3)

Allegro reference manual				      al_create_timer(3)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=al_create_timer&sektion=3&manpath=FreeBSD+Ports+15.1.quarterly>

home | help