Time Library:
Time support library.
Note: The time functions are in seconds, not milliseconds.
time.Sleep(fSeconds) Suspend script execution for fractional seconds.
Time constants:
time.MINUTE, time.HOUR, time.DAY
Examples:
time.Sleep(1.25) -- Wait for 1.25 seconds
time.Sleep(2 * time.MINUTE) -- Wait for two minutes
fTimeStamp = time.Get() Get time stamp (in fractional seconds) with millisecond precision.
This time is relative to the start of the MM session (not windows).
I.E. If the first thing you did in your script was call time.Get() the returned
value should be very close to zero.
fTimeStamp = time.Delta(fTimeStamp) Get difference from fTimeStamp to current time.
fTimeStamp = time.GetHigh() Same as time.Get() above but with better sub-millisecond precision
(typically in the microseconds) at the expense at being a little bit
slower call. Normally time.Get() should suffice most uses, but it’s better
to use time.GetHigh() (and time.DeltaHigh()) to do profiling, etc., where more
accuracy is warranted.
fTimeStamp = time.DeltaHigh(fTimeStamp) Higher precision version of time.Delta(). Should only be paired with
time.GetHigh(), not time.Get().