Last modified on 27 October 2012, at 22:13

REBOL Programming/delta-time

USAGE:Edit

DELTA-TIME block 

DESCRIPTION:Edit

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

DELTA-TIME is a function value.

ARGUMENTSEdit

  • block -- (Type: block)

SOURCE CODEEdit

delta-time: func [
    {Delta-time - returns the time it takes to evaluate the block.} 
    block [block!] /local 
    start
][
    start: now/precise 
    do block 
    difference now/precise start
]