Difference between revisions of "Wait"
From OpenEUO
Line 1: | Line 1: | ||
wait (msec) | wait (msec) | ||
− | Temporarily pauses execution of the script for msec milliseconds. Keep durations short if using this command in a gui thread where object events are handled. | + | Temporarily pauses execution of the script for msec milliseconds. Keep durations short if using this command in a gui thread where object events are handled. It is unlikely that accuracy is higher than the 'tick' rate of the system clock (system clock interrupt), so any call to wait(x) with x < 15 will likely wait at least 15ms (1/64 of a second). |
[[Obj.Loop]] | [[Obj.Loop]] | ||
+ | |||
+ | [http://msdn.microsoft.com/en-us/library/ms686298%28VS.85%29.aspx Windows API - Sleep function] | ||
+ | |||
+ | [http://blogs.msdn.com/b/embedded/archive/2006/02/20/535792.aspx MSDN Blog Article - Know thy tick] |
Revision as of 20:37, 7 October 2010
wait (msec)
Temporarily pauses execution of the script for msec milliseconds. Keep durations short if using this command in a gui thread where object events are handled. It is unlikely that accuracy is higher than the 'tick' rate of the system clock (system clock interrupt), so any call to wait(x) with x < 15 will likely wait at least 15ms (1/64 of a second).