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 synchronous action function.
measureAsync<R>(Future<R> action()) → Future<(R, Duration)>

Available on Stopwatch, provided by the StopwatchX extension

Measures the execution duration of an asynchronous action function.