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:
- Cannot exit fullscreen with ALLEGRO_OPENGL flag
- Redrawing smoothly while display is being resized
- Blacking out the display while resizing
- KrampusHack 2016
- Bitmap behind mappy map
- Statically link Allegro 5 in Ubuntu?
- Why some Shaders don't work !
- Change adapter un runtime
- Complications when drawing FPS
- Distros for MinGW 4.8.1/5.3.0 and Allegro 4.4.3/5.2.1.1 ready for download
Other recent discussions:
- Mixing Allegro 5 with OPENGL
- upgrading tank war codebase to allegro 5
- Keyboard input while rendering?
- Advice for game loops with lengthy computations
- Font loading crashing with Allegro 5.2
- Inconstistent joystick event delay
- Dsound undefined reference error when compiling using 5.2.1 binaries
- Display stops updating if I change the backbuffer-- What am I doing wrong?
- Events are not working
- Why is this code giving me Bitmap Assertion Failure?