By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,951 Members | 1,365 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,951 IT Pros & Developers. It's quick & easy.

Writing a delay function in C++

P: 1
I am doing a project and i would like to know if anyone can please tell me how to write a delay or wait function in c++ which works asynchronously with other programs.

Thank you,
Nov 17 '05 #1
Share this Question
Share on Google+
1 Reply

Expert Mod 100+
P: 2,328
Expand|Select|Wrap|Line Numbers
  1. #include <windws.h>
  2. void Sleep(int ms)
Expand|Select|Wrap|Line Numbers
  1. #include <unistd.h>
  2. unsigned int sleep (unsigned int seconds)
Hope that helps.
Nov 18 '05 #2

Post your reply

Sign in to post your reply or Sign up for a free account.