Skip to content
angerangel edited this page Mar 15, 2013 · 1 revision

USAGE

   DT block

DESCRIPTION

Delta-time - returns the time it takes to evaluate the block.

DT is a function value.

ARGUMENTS

  • block (block!)

#SOURCE

dt: make function! [  [
    {Delta-time - returns the time it takes to evaluate the block.}
    block [block!]
    /local start
][
    start: stats/timer
    do block
    stats/timer - start
] ]
Clone this wiki locally