borland builder C++ - wait() ??

  • Thread starter galaxy.uci.agh.edu.pl
  • Start date
G

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 ?
 
M

Matthias

galaxy.uci.agh.edu.pl said:
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).
 
B

Basil

galaxy.uci.agh.edu.pl said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,045
Latest member
DRCM

Latest Threads

Top