prettyPrint method
Pretty print stopwatch time
Implementation
String prettyPrint() {
final elapsed = elapsedMilliseconds;
final String time;
if (elapsed > 1000) {
time = '${(elapsed / 1000).toStringAsFixed(1)}s';
} else {
time = '${elapsed}ms';
}
return time;
}