?
Solved

sleep function

Posted on 2003-03-02
5
Medium Priority
?
262 Views
Last Modified: 2010-04-01
what header file do i need for sleep function?
0
Comment
Question by:dinn
[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
  • 2
  • 2
5 Comments
 
LVL 4

Accepted Solution

by:
n_fortynine earned 200 total points
ID: 8051061
on UNIX i think it is <unistd.h>
for MFC there's the default ::sleep() ...
0
 

Author Comment

by:dinn
ID: 8051102
what is the syntax?
0
 

Expert Comment

by:Nanos
ID: 8051158
#include <windows.h>
VOID Sleep(
  DWORD dwMilliseconds   // sleep time
);

0
 
LVL 4

Expert Comment

by:n_fortynine
ID: 8051269
i thought you knew
0
 

Author Comment

by:dinn
ID: 8051323
yep
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
Written by John Humphreys C++ Threading and the POSIX Library This article will cover the basic information that you need to know in order to make use of the POSIX threading library available for C and C++ on UNIX and most Linux systems.   [s…
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.
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.
Suggested Courses

752 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