Time a function: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 779:
call silly
say 'function SILLY took' format(time("E"),,2) 'seconds.'
 
/* The above 2 for the FORMAT function displays the time */
/* with 2 decimal digits (past the decimal point). Using */
/* a 0 (zero) would round the time to whole seconds. */
 
exit
 
 
silly: procedure /*subroutine chews up CPU time doing silly stuff*/