rest man page on DragonFly

Man page or keyword search:  
man Server   44335 pages
apropos Keyword Search (all sections)
Output format
DragonFly logo
[printable version]

rest(3)				Allegro manual			       rest(3)

NAME
       rest  - Waits a specified number of milliseconds or yields CPU. Allegro
       game programming library.

SYNOPSIS
       #include <allegro.h>

       void rest(unsigned int time);

DESCRIPTION
       This function waits for the specified number of milliseconds.

       Passing 0 as parameter will not wait, but just yield. This can be  use‐
       ful  in	order  to  "play nice" with other processes. Other values will
       cause CPU time to be dropped on most platforms. This will  look	better
       to  users,  and	also  does things like saving battery power and making
       fans less noisy.

       Note that calling this inside your active game loop is a bad  idea,  as
       you never know when the OS will give you the CPU back, so you could end
       up missing the vertical retrace and skipping frames. On the other hand,
       on  multitasking	 operating  systems it is good form to give up the CPU
       for a while if you will not be using it.

SEE ALSO
       install_timer(3), rest_callback(3), vsync(3), d_yield_proc(3)

Allegro				 version 4.4.2			       rest(3)
[top]

List of man pages available for DragonFly

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net