8.12
9.2 Measure
import: rhombus/measure | package: rhombus-prototype |
Returns the same value(s) as the body sequence, but first
prints to the current output port the amount of time elapsed during the
evaluation of body sequence.
If the ~gc option is specified, then runtime.gc is called before the body sequence, and time required for the garbage collection is not counted as part of the reported time.
"useless"
cpu time: 22 real time: 22 gc time: 0
"useless"
Returns the same value(s) as the body sequence, but first
prints to the current output port information about allocation during
the evaluation of body sequence.
[1, 2]
allocated: 1056
[1, 2]
expression | ||||
|