Time a function: Difference between revisions

m
Line 500:
=={{header|Arturo}}==
 
<lang arturorebol>func:benchmark {[
print "starting function"
delay 2000
pause 2000
}
print "function ended"
 
]</lang>
print "Function took: " + [benchmark func] + "s"</lang>
 
{{out}}
 
<pre>starting function
<pre>Function took: 2001ms</pre>
function ended
[benchmark] time: 2.005s</pre>
 
=={{header|AutoHotkey}}==
1,532

edits