StopwatchX extension
Extension helpers for Stopwatch.
- on
Static Methods
-
measure<
R> (R action()) → (R, Duration) -
Available on Stopwatch, provided by the StopwatchX extension
Measures the execution duration of a synchronousactionfunction. -
measureAsync<
R> (Future< R> action()) → Future<(R, Duration)> -
Available on Stopwatch, provided by the StopwatchX extension
Measures the execution duration of an asynchronousactionfunction.