al_start_timer
void al_start_timer(ALLEGRO_TIMER *timer)
Introduced in 5.0.0
Start the timer specified. From then, the timer's counter will increment at a constant rate, and it will begin generating events. Starting a timer that is already started does nothing.
See also: al_stop_timer, al_get_timer_started
Examples: ex_bitmap, ex_bitmap_flip, ex_blend, ex_blit, ex_clip, ex_display_options, ex_draw, ex_draw_bitmap, ex_expose, ex_filter, ex_gldepth, ex_glext, ex_haiku, ex_icon, ex_iphone, ex_logo, ex_multisample, ex_native_filechooser, ex_noframe, ex_ogre3d, ex_premulalpha, ex_prim, ex_resize, ex_stream_seek, ex_threads, ex_threads2, ex_timer, ex_transform, ex_ttf, ex_user_events
Most helpful discussions:
- Math question (2d trig)
- Multiple threads/displays, Event handling question
- Is there a way to wait before drawing a bitmap in Allegro5?
- Difficulty compiling on Windows
- How do I return a boolean instead of locking up the process?
- Screen is cleared and a new one appears Allegro5 in C?
- Same code - slow on Windows, fast on Linux - timer fires too slow?
- Allegro 5 performance
- Rendering A Hot Air Balloon
- Game Crashing and I'm not sure why?
Other recent discussions:
- Mingw do not find Allegro lib
- got a bug in my FULLSCREEN WINDOWED MODE switchout
- very basic bitmap animation
- Enter charaters/numbers from Keypad
- Some allegro 5 functions not working on some laptops
- To get shaders going.
- Weird flex with my Bitmaps on my Screen
- [A5] How to properly implement limiting FPS?
- I have a problem with animation (-1)
- display problem using primitives (horizontal line glitch)