[][src]Module core_extensions::measure_time

Time measurement,including functions and types.

Structs

MyDuration

Wrapper type for ::std::time::Duration which is specialized for measuring code execution time.

Functions

measure

Measures the time taken by f to execute, returning a pair of (MyDuration,T).

try_measure

Measures the time taken by fallible function f to execute, returning a pair of Result<(MyDuration,T),E>, so that this function can be used in combination with ?.