我怎样才能停止在 Forth 中立即输出值?

How can I stop values being outputted immediately in Forth?

使用SwiftForth,我目前正在研究测量执行一个单词所需时间的方法。我使用 'counter' 然后 'timer' 的形式:

counter insert_word_here timer

这会立即输出 运行 这个词所花费的时间(以微秒为单位)。有什么方法可以防止这个整数立即输出,以便我可以将它存储在堆栈中?

timer 在 SwiftForth 中的实现类似于

: timer  \ t0 -- ;
  counter swap - u.
;

简单地定义一个没有 u. 的单词,经过的时间(以毫秒为单位)留在堆栈中。

: timer-ms \ t0 -- t-elapsed
  counter swap -
;

我没有 SwiftForth,但在我找到的页面上定义了定时器作为示例。我认为这应该可以,但我无法测试它。