time method

void time(
  1. String? id
)

Implementation

void time(String? id) {
  id ??= _defaultTimerId;
  if (_stopwatches.containsKey(id)) {
    warning('Timer \'$id\' already exists.');
  }

  _stopwatches[id] = Stopwatch()..start();
}