StopwatchExtension extension

on

Methods

timeLeft(Duration? timeout, [Duration? absoluteTimeout]) Duration?

Available on Stopwatch, provided by the StopwatchExtension extension

Calculate time left on a timeout Duration value, optionally with a absoluteTimeout value which do not depend on stopwatch elapsed time.