measureMsSync static method
Measure execution time of sync code block
Implementation
static double measureMsSync(void Function() fn) {
final sw = Stopwatch()..start();
fn();
sw.stop();
return sw.elapsedMicroseconds / 1000.0;
}
Measure execution time of sync code block
static double measureMsSync(void Function() fn) {
final sw = Stopwatch()..start();
fn();
sw.stop();
return sw.elapsedMicroseconds / 1000.0;
}