Module core_extensions::measure_time
source · Expand description
Time measurement.
Functions§
- Measures the time taken by
f
to execute, returning a pair of(Duration, T)
. - Measures the time taken by fallible function
f
to execute, returning a pair ofResult<(Duration, T), E>
, so that this function can be used in combination with?
.