ipcSleepMilli
ipcSleepMilli(x_time) =>t
Description
Causes the parent process to be delayed for the given number of milliseconds. Use the otherwise identical ipcSleep function to specify the delay in seconds.
Arguments
Value Returned
Examples
The following example illustrates the performance characteristics for more, shorter delays as compared to fewer, longer delays.
> procedure(SleepPerformance(x_numIters x_milliPerIter) let( (measured) measured = measureTime(
for(i 1 x_numIters ipcSleepMilli(x_milliPerIter)) )
printf("for %d iterations of %dms, (userTime sysTime wallclock)
is (%f %f %f)\n"
x_numIters x_milliPerIter
nth(0 measured) nth(1 measured) nth(2 measured) )
))
> (SleepPerformance 2000 50)
for 2000 iterations of 50ms, (userTime sysTime wallclock) is (0.018998 0.016997 100.167697)
t
> (SleepPerformance 50 2000)
for 50 iterations of 2000ms, (userTime sysTime wallclock) is (0.000999 0.001000 100.083947)
t
Related Topics
Interprocess Communication Functions
Return to top