Calls function fn without args, prints elapsed time and returns fn's result. The optional prefix will be displayed with the output, allowing to label different measurements.
fn
prefix
function to time
log prefix
Similar to timed, but produces no output and instead returns tuple of fn's result and the time measurement (in milliseconds).
Generated using TypeDoc
Calls function
fn
without args, prints elapsed time and returns fn's result. The optionalprefix
will be displayed with the output, allowing to label different measurements.