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?
.