Solved

delaying operation of command

Posted on 1998-07-03
3
178 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Fast access to array, using indexes, smart iterative search 2 131
Dialogbox API leak? 18 114
C++ mouse_event mouse look 7 128
DCT of  2D array using fftw in c++ 9 121
What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
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…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

742 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