al_get_time
double al_get_time(void)
Introduced in 5.0.0
Return the number of seconds since the Allegro library was initialised. The return value is undefined if Allegro is uninitialised. The resolution depends on the used driver, but typically can be in the order of microseconds.
Examples: ex_bitmap, ex_bitmap_target, ex_blend, ex_blit, ex_clip, ex_convert, ex_d3d, ex_drawpixels, ex_draw_bitmap, ex_glext, ex_haiku, ex_logo, ex_membmp, ex_ogre3d, ex_opengl, ex_opengl_pixel_shader, ex_pixelformat, ex_premulalpha, ex_prim, ex_timer, ex_transform, ex_ttf
Most helpful discussions:
- How would I implement a FPS counter w/ Allegro 5 events? (1)
- keeping track of time (1)
- Complications when drawing FPS
- Advice for game loops with lengthy computations
- Allegro 5.2.1.1 released!
- double precision for al_transform_coordinates?
- Segmentation fault al_map_rgb
- Just bored... ;)
- Image transition too slow !
- Crash on al_get_time()
Other recent discussions:
- Problem with events
- [A5] Fullscreen + keep 4:3 ratio
- Scaling doesn't work with transformation.
- Allegro Wait for Event(Pretty slow)
- Joystick Event Injection
- [OSX 10.9] Audio somehow freezes program a few seconds on exit
- al_flip_display() forces 60fps?
- al_get_backbuffer does not work
- One function call cuts my FPS in half
- ***Pausing an Image for 1 second***