stop method

void stop(
  1. String label
)

Implementation

void stop(String label) {
  final stopwatch = _timers[label];
  if (stopwatch == null) {
    debugPrint('❌ [$label] was not started.');
    return;
  }
  stopwatch.stop();
  final time = stopwatch.elapsed;
  debugPrint('✅ [$label] completed in ${time.inMilliseconds} ms '
      '(${time.inMicroseconds} µs)');
  _timers.remove(label);
}