bench_time: Measure Process CPU and real time that an expression used.
Description
Measure Process CPU and real time that an expression used.
Usage
bench_time(expr)
Value
A bench_time object with two values.
process - The process CPU usage of the expression evaluation.
real - The wallclock time of the expression evaluation.
Arguments
expr
A expression to be timed.
Details
On some systems (such as macOS) the process clock has lower
precision than the realtime clock, as a result there may be cases where the
process time is larger than the real time for fast expressions.
See Also
bench_memory() To measure memory allocations for a given expression.