Skip to content
Thomas Foster edited this page Mar 22, 2021 · 2 revisions

Function   Suspends execution for an interval (milliseconds).

Syntaxvoid delay(unsigned milliseconds);

Prototype in   dos.h

Return value*   None.

Remarks

With a call to delay, the current program is suspended from execution for the number of milliseconds specified by the argument milliseconds.

Example

/* play detached notes */
sound(440, 250);
delay(50);
sound(550, 250);
delay(50);
sound(660, 250);

Header Files

Clone this wiki locally