al_rest
void al_rest(double seconds)
Introduced in 5.0.0
Waits for the specified number seconds. This tells the system to pause the current thread for the given amount of time. With some operating systems, the accuracy can be in the order of 10ms. That is, even
al_rest(0.000001)might pause for something like 10ms. Also see the section
Examples: ex_acodec, ex_acodec_multi, ex_drawpixels, ex_dualies, ex_fs_window, ex_kcm_direct, ex_keyboard_focus, ex_mixer_chain, ex_mouse, ex_mouse_focus, ex_multiwin, ex_opengl_pixel_shader, ex_prim, ex_rotate, ex_scale, ex_threads2, ex_vsync, ex_winfull
Most helpful discussions:
- upgrading tank war codebase to allegro 5
- How to make a bitmap blink?
- Advice for game loops with lengthy computations
- A5 compiled fine, but can't compile against the library
- Running Allegro C++ code in Geany
- [A5] Drawing a textured trapezoid (2D)
- Why is this code giving me Bitmap Assertion Failure?
- Hello, font loading keeps crashing in allegro5?
- Allegro Xcode Error Compiling
- Keyboard Interrupting on Mouse Positions?
Other recent discussions:
- Pong Collision
- allegro 5 multi display drawing problems
- Help using mouse events in creating a Menu
- Just bored... ;)
- Allegro installed wrong on Linux
- Image transition too slow !
- Crash on al_get_time()
- al_mangled_main() issue OSX while creating a standalone bundle
- X Error: BadDrawable (X_PutImage)
- al_show_native_message_box does not show the text