cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
How to "pause" a program for a certain n
How to "pause" a program for a certain number of seconds
Mar 24, 2009 at 9:45pm UTC
Warrior2089
(91)
I know there is some way to pause for a few seconds that measures in miliseconds, something like something("5000"); for 5 seconds. What's the function I'm looking for?
Mar 24, 2009 at 10:37pm UTC
kfex
(31)
You can use this
http://www.cplusplus.com/reference/clibrary/ctime/clock.html
Mar 24, 2009 at 10:54pm UTC
Warrior2089
(91)
I found it. It's
Sleep(5000);
for 5 seconds. Thanks though!
Mar 25, 2009 at 1:57am UTC
Duthomhas
(13206)
Keep in mind that that is Windows-specific. If you plan to run your code on Linux or some other platform that part will have to change.
Topic archived. No new replies allowed.