sleep

Navigation:  Programming language SQC > Built-in functions > Time >

sleep

Previous pageReturn to chapter overviewNext page

The sleep() function delays the program execution for an amount of

time in ms.

 

 

void sleep(int ms)

 

Example:

 

void main()

{

   while(1)

   {

      sleep(1000);

      printf("Tick");

   }

}

 

Output:

 

 Tick

 Tick

 Tick

 Tick

 Tick

 ...