Allegro 5 api
#include <allegro5/allegro.h> void al_init_timeout(ALLEGRO_TIMEOUT *timeout, double seconds)
Set timeout value of some number of seconds after the function call.
ALLEGRO_TIMEOUT(3alleg5), al_wait_for_event_until(3alleg5)