Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

rest(3alleg4) [suse man page]

rest(3alleg4)                                                     Allegro manual                                                     rest(3alleg4)

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 useful 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(3alleg4), rest_callback(3alleg4), vsync(3alleg4), d_yield_proc(3alleg4) Allegro version 4.4.2 rest(3alleg4)

Check Out this Related Man Page

exmidi(3alleg4) 						  Allegro manual						   exmidi(3alleg4)

NAME
exmidi - Playing MIDI music. Allegro game programming library. SYNOPSIS
#include <allegro.h> Example exmidi DESCRIPTION
This program demonstrates how to play MIDI files. SEE ALSO
END_OF_MAIN(3alleg4), MIDI(3alleg4), SCREEN_H(3alleg4), SCREEN_W(3alleg4), allegro_error(3alleg4), allegro_init(3alleg4), allegro_mes- sage(3alleg4), clear_to_color(3alleg4), desktop_palette(3alleg4), destroy_midi(3alleg4), font(3alleg4), get_filename(3alleg4), get_midi_length(3alleg4), install_keyboard(3alleg4), install_sound(3alleg4), install_timer(3alleg4), key(3alleg4), keypressed(3alleg4), load_midi(3alleg4), makecol(3alleg4), midi_pause(3alleg4), midi_pos(3alleg4), midi_resume(3alleg4), midi_time(3alleg4), play_midi(3alleg4), readkey(3alleg4), rectfill(3alleg4), rest(3alleg4), screen(3alleg4), set_display_switch_mode(3alleg4), set_gfx_mode(3alleg4), set_pal- ette(3alleg4), text_height(3alleg4), text_length(3alleg4), textprintf_centre_ex(3alleg4) Allegro version 4.4.2 exmidi(3alleg4)
Man Page

11 More Discussions You Might Find Interesting

1. Programming

files and wild character

Hai, Can any one give idea how to display files by wildcharacter in c. If there is any function available it will very usefull for me. (4 Replies)
Discussion started by: arunkumar_mca
4 Replies

2. UNIX for Advanced & Expert Users

86% CPU for wait

Hi, is-it normal to have 86% of CPU for wait commande : ps aux| head -20 UTIL PID %CPU %MEM SZ RSS TTY STAT STIME TIME COMMAND root 516 86,6 0,0 12 12 - A 02 nov 2088:03 wait oralfa01 54422 4,6 1,0 68044 39868 - A 09:20:06 2:27 oracleALFA01 If... (3 Replies)
Discussion started by: big123456
3 Replies

3. HP-UX

how to calculate CPU time under HP-UX

Hi, I am loking for a c++ function that calculate CPU time under HP-UX Thank you (1 Reply)
Discussion started by: limame
1 Replies

4. Programming

Ideas Please (File Sequencing)

Hello All Hope someone can help me with an idea or two on how to approach the following situation; I currently have a process that generates sequenced files. The sequencing is very important and skipping sequences are not allowed. The applicaton has a single thread that consume data produced... (9 Replies)
Discussion started by: bcpkvh
9 Replies

5. Solaris

Infinite for loop is taking too much CPU usage %

Hi All, I wrote one simple for loop shell script which prints number..but this loop is infinite...but its taking lot of CPU (15.7) %. if i am using sleep cmd then cpu usage become 0.4 %. Is there anyway to reduce this CPU usage without using sleep cmd? i dont want 2 use sleep cmd... (7 Replies)
Discussion started by: pa.chidhambaram
7 Replies

6. Post Here to Contact Site Administrators and Moderators

Polls: Change vote

Since most of the polls in "The Lounge" are subjective and quite some are asking about things that might change over time (examples here, here and here), I think it might be a good idea to allow a change of mind on (some) polls. A vBulletin mod that can do that is available here What's your... (3 Replies)
Discussion started by: pludi
3 Replies

7. Programming

Working with extremely large numbers in C

Hi All, I am just curious, not programming anything of my own. I know there are libraries like gmp which does all such things. But I really need to know HOW they do all such things i.e. working with extremely large unimaginable numbers which are beyond the integer limit. They can do add,... (1 Reply)
Discussion started by: shoaibjameel123
1 Replies

8. Solaris

Process execution time in milliseconds

Hey everyone, I'm coming from Linux where the top command gave me lots of process info (particularly CPU time in milliseconds) and I'm trying to find similar info in Solaris. So far I've looked at prstat and ps but neither give cpu time in milliseconds, both seem to have 1 second... (2 Replies)
Discussion started by: maniac_ie
2 Replies

9. AIX

AIX CPU waits

Guys, I have a question - when nmon reports a sizeable %CPU wait, does that mean - 1) IO operations are slowing CPU down, OR 2) paging slowing the CPU down, OR 3) one cant tell?? I thought the nmon documentation clearly suggested that CPU waits reported in nmon were from disk... (4 Replies)
Discussion started by: getback0
4 Replies

10. HP-UX

CPU Usage

Hi Experts, We encountered problem in one of the production system where some processes were taking higher CPU and after some time it came back to normal.. From system prespective, is there any way to check why processes took more cpu during that particular period. (16 Replies)
Discussion started by: sai_2507
16 Replies

11. AIX

EMCP_MOND in AIX 6.1

EMCP_MOND is utilizing high CPU in one of the AIX server.The EMCP configuration file is same as like the other servers. But only in this server its is utilizing almost 60% of CPU. Any idea ? (5 Replies)
Discussion started by: gowthamakanthan
5 Replies