CMPC
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Sleep command

4 posters

Go down

Sleep command Empty Sleep command

Post by Admin Thu Dec 03, 2009 2:40 am

Code:
Sleep


the sleep command makes the command line wait for a given amount of milliseconds then continue with the commands following it. It's just like the pause function except you don't have to wait for the user to press anything to continue.

hint: 1000 miliseconds = 1 second


Example:
Code:
Sleep 1000;//program waits for 1 second


Last edited by Admin on Wed Feb 03, 2010 4:16 am; edited 1 time in total
Admin
Admin
Pirate King

Posts : 559

Back to top Go down

Sleep command Empty Re: Sleep command

Post by Lunsfordium Wed Feb 03, 2010 2:16 am

hey dou you know how to make it play

music files....

video files?
Lunsfordium
Lunsfordium
[Blankie]

Posts : 194

Back to top Go down

Sleep command Empty Re: Sleep command

Post by Paul Wed Feb 03, 2010 2:46 am

DOS does not in itself support music or video, but if you have a program that does then you open the file with the program.
Paul
Paul
Pickaxe

Posts : 611

Back to top Go down

Sleep command Empty Re: Sleep command

Post by Corey Wed Feb 03, 2010 4:08 am

Milliseconds, by the way. Not microseconds. Milliseconds is "ms" while microseconds are "µs". I microseconds is one thousandth of a milliseconds, or one millionth of a seconds. So, kind of a big difference.
1 s = 1000 ms = 1000000 µs
Corey
Corey
Mod

Posts : 462

Back to top Go down

Sleep command Empty Re: Sleep command

Post by Admin Wed Feb 03, 2010 4:16 am

haha woops yeah milisecond.
Admin
Admin
Pirate King

Posts : 559

Back to top Go down

Sleep command Empty Re: Sleep command

Post by Corey Wed Feb 03, 2010 4:20 am

I love that symbol.
µ
Corey
Corey
Mod

Posts : 462

Back to top Go down

Sleep command Empty Re: Sleep command

Post by Corey Wed Feb 03, 2010 4:20 am

Heh. I love most mathematical/scientific symbols. Sometimes I just sit there and draw them Smile
Corey
Corey
Mod

Posts : 462

Back to top Go down

Sleep command Empty Re: Sleep command

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum