Suspends execution for interval (milliseconds)
Declaration:
void delay(unsigned milliseconds);
Remarks:
With a call to delay, the current program is suspended from execution for
the time specified by the argument milliseconds.
It is not necessary to make a calibration call to delay before using it.
delay is accurate to one millisecond.
Return Value:
None
Example:
/* Emits a 440-Hz tone for 500 milliseconds */
#include <dos.h>
int main(void)
{
sound(440);
delay(500);
nosound();
return 0;
}
0 comments:
Post a Comment