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

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

Description

       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.

Name

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

See Also

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)

Allegro                                           version 4.4.3                                 extimer(3alleg4)

Synopsis

#include<allegro.h>Exampleextimer

See Also