core_extensions

Module 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 of Result<(Duration, T), E>, so that this function can be used in combination with ?.