<timer> time a block of code

name
timer
xml namespace
http://moyaproject.com

Time a block of code, and log the elapsed time. The log will display two time values; the first is the wall time, the second is processor time. Processor time is more useful for profiling, as it doesn't include the time spent waiting on IO.

attributes
name purpose type required? default choices
console Display to console? boolean No no
ms Display milliseconds boolean No no
msg msg text No "elapsed"
inherited attributes
name purpose type required? default choices
if Conditional expression expression No yes