measure_time_async

Function measure_time_async 

Source
pub async fn measure_time_async<F, Fut, R>(f: F) -> (R, Duration)
where F: FnOnce() -> Fut, Fut: Future<Output = R>,
Expand description

Measure execution time of an async closure