In Matlab, the function
pause(x)
Stops execution for x seconds. Is there something similar in Julia?
Not a serious answer, but I have a note-to-self from julia v0.4 days to use the following to pause execution for t seconds:
f = t -> watch_file(".",t)
Here's the current stable version documentation of watch_file.
I have another similar note suggesting this:
f = t -> (b=time(); while b+t > time() end)
I have no earthly idea why either would be preferred method of pausing program execution vs. sleep(x), perhaps someone could comment.
sleep() and FileWatching.watch_file() based f and it's comparable.
sleep(seconds)Block the current task for a specified number of seconds. The minimum sleep time is 1 millisecond or input of 0.001.sleepdoes the job. Please post it below so I can accept.