After a task has completed, log time to completion.
void logStopwatch(String task, Stopwatch stopwatch) { final elapsedSeconds = stopwatchToSeconds(stopwatch); logger.info('$task, took $elapsedSeconds'); }