Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
Time.Sleep
Delays execution for the given number of milliseconds.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Utility | 4.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
MBS( "Time.Sleep"; duration ) More
Parameters
Parameter | Description | Example |
---|---|---|
duration | Number of milliseconds to wait. | 10 |
Result
Returns OK or error.
Description
Delays execution for the given number of milliseconds.You can use this to delay something on purpose. The while FileMaker Pro app is locked for the given time.
Pass 1000 for a one second delay.
This pauses execution of evaluation or a script.
To avoid you block yourself endlessly, we limit the range to 1 to 60000 microseconds = one minute maximum.
Examples
Pause 5 milliseconds:
Let([
t1 = Get(CurrentTimeUTCMilliseconds);
r = MBS( "Time.Sleep"; 5 );
t2 = Get(CurrentTimeUTCMilliseconds)
]; t1 & ¶ & t2)
Example result:
63750557007194
63750557007200
See also
Release notes
- Version 11.1
- Fixed rounding error with Time.Sleep function.
Blog Entries
This function is free to use.
Created 18th August 2014, last changed 13th April 2021
