Borland C++ reference

delay

raw OCR

Suspends execution for an interval (milliseconds).

Defined in header <dos.h>

Syntax

#include <dos.h>
void delay(unsigned  milliseconds);

Portability

DOSUNIXWindowsANSI CC++ only
■

Remarks

With a call to delay, the current program is suspended from execution for the number of milliseconds specified by the argument milliseconds. It is no longer necessary to make a calibration call to delay before using it. delay is accurate to a millisecond.

Return value

None.

See also

Example

/* emits a 440-Hz tone for 500 milliseconds  V
#include <dos.h>

int main(void)
sound(440);
delay(500),•
nosoundO ;
return 0;

Differences from modern implementations

Nothing recorded yet.

Modern references

These are search links, not yet checked by hand.