sleep
Suspend code execution.
📝Syntax
sleep(sec)
📥Input Arguments
Parameter Description
n a double: duration of the sleep in seconds (decimal number).
📄Description

sleep stops Nelson processing any instruction for a speficied number of seconds.

CTRL-C interruption stops sleep.

💡Examples
tic();sleep(1);toc()
tic();sleep(0.1);toc()
tic();sleep(0.01);toc()
🔗See Also
tictoc
🕔Version History
Version Description
1.0.0 initial version
Edit this page on GitHub