CAUTION the word ms blocks all others process. For long expectations, it is advisable to split the wait long in a succession of short expectations in a loop-type begin..until for example." /> CAUTION the word ms blocks all others process. For long expectations, it is advisable to split the wait long in a succession of short expectations in a loop-type begin..until for example." />

ms  ( n -- )

published: 28 January 2023 / updated 28 January 2023

Lire cette page en français

 

Waiting in milliseconds.

b class="alert"> CAUTION the word ms blocks all others process. For long expectations, it is advisable to split the wait long in a succession of short expectations in a loop-type begin..until for example.

Example:

500 ms \ delay for 1/2 second 
 
\ For long waits, set a wait word in seconds: 
: seconds ( n --) 
    0 
    for 
        1000 ms 
    next ; 
12 seconds \ delay for 12 seconds