Function delay

Top 

Declaration:

void delay(unsigned int milliseconds);

Description

Suspends the program for the specified time interval.

Example

  while (1)

  {

    Step();         // to execute a step

    RedrawScreen(); // To update the screen. Step() does not do it.

    delay(1000);    // wait for one second. During this time step

  }                 // results can be observed