Provided by: allegro4-doc_4.4.2-4_all bug


       extimer - Using the timer (delays and interrupts). Allegro game programming library.


       #include <allegro.h>

       Example extimer


       This  program  demonstrates  how to use the timer routines.  These can be a bit of a pain,
       because you have to be sure you lock all the memory that is  used  inside  your  interrupt
       handlers.   The  first  part of the example shows a basic use of timing using the blocking
       function rest(). The second part shows how to use three timers with different  frequencies
       in a non blocking way.


       END_OF_FUNCTION(3alleg4),           END_OF_MAIN(3alleg4),          LOCK_FUNCTION(3alleg4),
       LOCK_VARIABLE(3alleg4), SCREEN_W(3alleg4), allegro_error(3alleg4),  allegro_init(3alleg4),
       allegro_message(3alleg4),        clear_to_color(3alleg4),        desktop_palette(3alleg4),
       font(3alleg4), install_int(3alleg4),  install_int_ex(3alleg4),  install_keyboard(3alleg4),
       install_timer(3alleg4),      key(3alleg4),      keypressed(3alleg4),     makecol(3alleg4),
       readkey(3alleg4),       rest(3alleg4),       screen(3alleg4),       set_gfx_mode(3alleg4),
       set_palette(3alleg4), textprintf_centre_ex(3alleg4)