Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 9.5   10.0   10.1   10.2   10.3   10.4   10.5   11.0   11.1   11.2    Statistic    FMM    Blog  

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

Blog Entries

Created 18th August 2014, last changed 13th April 2021


Time.Parse - Time.TimeStampToUTC

Feedback: Report problem or ask question.