timeOperation function
Times the specified synchronous operation.
Implementation
Duration timeOperation(void Function() operation) {
var stopwatch = Stopwatch()..start();
operation();
return stopwatch.elapsed;
}
Times the specified synchronous operation.
Duration timeOperation(void Function() operation) {
var stopwatch = Stopwatch()..start();
operation();
return stopwatch.elapsed;
}