Statement macro
Returns the time, in seconds and microseconds, spent executing the body of code it is wrapped around.
timing () [ body ] end [ timing ]
<integer>.
<integer>.
common-extensions
common-extensions
Returns the time, in seconds and microseconds, spent executing the body of code it is wrapped around.
The first value returned is the number of whole seconds spent in body. The second value returned is the number of microseconds spent in body in addition to seconds.
An example:
timing ()
for (i from 0 to 200)
format-to-string("%d %d", i, i + 1)
end
end;=> 1 671000