Solved

delaying operation of command

Posted on 1998-07-03
3
175 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

ScreenConnect 6.0 Free Trial

Want empowering updates? You're in the right place! Discover new features in ScreenConnect 6.0, based on partner feedback, to keep you business operating smoothly and optimally (the way it should be). Explore all of the extras and enhancements for yourself!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
how to understand recursion 12 226
Find Visual Studio Tools 2 103
How to print into std::string like sprintf using C++11? 12 60
Installshield for Embarcadero EX 10.1 Berlin 4 42
Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
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 technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

778 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