Code covered by the BSD License
John Pritchard (view profile)
12 Apr 2013
Pause for specified amount of time, in milliseconds.
Watch this File
This function makes use of tic toc to delay for short periods of time.
The original author of this should be attributed to Marcel Kraemer.
Example of use:
%Pause for 100 milliseconds
Letting a loop run until the end time is reached wastes power. java.lang.Thread.sleep(duration) would be more efficient and accurate.
thank, its useful function.