benchLog function
Log the duration of the func
execution.
Implementation
Future benchLog(String label, Function action) async {
final start = DateTime.now();
await action();
final end = DateTime.now();
final duration = end.difference(start);
debugPrint('$label: $duration');
}