ticks  ( -- u )

published: 29 January 2023 / updated 29 January 2023

Lire cette page en français

 

vocabulary:

System ticks. One tick per millisecond.

Useful for measuring the execution time of a definition.

Example:

: tempo ( n ---) 
    >r ticks r>  
    for next  
    ticks  
    swap - . 
 ;  
1000 tempo \ display 2 
\ result 2 is the execution time in milliseconds 
\ for for..next loop