Solved

delaying operation of command

Posted on 1998-07-03
3
173 Views
Last Modified: 2010-04-01
is there a function of a similar nature to BASIC's SLEEP command... If so, what is it, how do i use it? (what #includes do i need etc)......?????
0
Comment
Question by:th_c_man
3 Comments
 
LVL 84

Expert Comment

by:ozo
ID: 1167155
#include <unistd.h>

unsigned int sleep (unsigned int seconds);
0
 

Accepted Solution

by:
dst earned 50 total points
ID: 1167156
//Following code will suspends the execution of your program for
//1000 milliseconds:

#include <winbase.h>

Sleep(1000);

0
 

Author Comment

by:th_c_man
ID: 1167157
* ozo-- i dont understand your one... more information ?

* dst-- thanks! i'll give it a try.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now