timed static method
Implementation
static void timed(String actionName,
{required void Function() action,
void Function(Duration time)? onDone}) {
final Stopwatch sw = Stopwatch()..start();
action();
sw.stop();
if (onDone != null) {
onDone(sw.elapsed);
} else {
Debug().watchdog("** Action $actionName took ${sw.elapsed}");
}
}