Delta time

angerangel edited this page Jan 3, 2013 · 1 revision
Clone this wiki locally

Table of Contents

USAGE

  DELTA-TIME block

DESCRIPTION

Delta-time - returns the time it takes to evaluate the block. DELTA-TIME is a function value.

ARGUMENTS

  • block (block!)

SOURCE

delta-time: 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
] ]