File Exchange

image thumbnail

Millisecond Pause Function

version 1.0 (1.14 KB) by

Pause for specified amount of time, in milliseconds.

3 Downloads

Updated

View License

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
       milliPause(100);

Comments and Ratings (2)

Jan Simon

Jan Simon (view profile)

Letting a loop run until the end time is reached wastes power. java.lang.Thread.sleep(duration) would be more efficient and accurate.

animati

thank, its useful function.

MATLAB Release
MATLAB 7.14 (R2012a)

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video