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

borland builder C++ - wait() ??

P: n/a
hello,
I'd like to use function similar to wait(milisecond) because i'd like to
wait some time and do nothing .... what function I should use ?
Jul 23 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
galaxy.uci.agh.edu.pl wrote:
hello,
I'd like to use function similar to wait(milisecond) because i'd like to
wait some time and do nothing .... what function I should use ?


I think you are looking for sleep(seconds).

--
Regards,
Matthias
Jul 23 '05 #2

P: n/a
"galaxy.uci.agh.edu.pl" <ar********@poczta.onet.pl> wrote in message news:<cu**********@galaxy.uci.agh.edu.pl>...
hello,
I'd like to use function similar to wait(milisecond) because i'd like to
wait some time and do nothing .... what function I should use ?


Use Sleep. This is Win API function.

The Sleep function suspends the execution of the current thread for a
specified interval.

VOID Sleep(
DWORD dwMilliseconds // sleep time in milliseconds
);
Parameters

dwMilliseconds

Specifies the time, in milliseconds, for which to suspend execution. A
value of zero causes the thread to relinquish the remainder of its
time slice to any other thread of equal priority that is ready to run.
If there are no other threads of equal priority ready to run, the
function returns immediately, and the thread continues execution. A
value of INFINITE causes an infinite delay.

Return Values

This function does not return a value.

Thank
Basil
Jul 23 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.