msSleep

Pause execution for a given time

Description

msSleep( ms )

Pause script execution for a given number of milliseconds.// NOTE: The resolution is 10ms

Parameters

ms Number of milliseconds to pause (rounded to 10ms)

Halts script execution for the stated time.

Return value

No meaningful return value.

Example usage

   SetOutput(1, 1);
   msSleep(100);
   SetOutput(1, 0);
 
   // 100ms pulse on output 1