stopAndClear method

int stopAndClear(
  1. String ref
)

(Opcional) Detiene y remueve el stopwatch para ref devolviendo el tiempo total

Implementation

int stopAndClear(String ref) {
  int total = stop(ref: ref);
  _stopwatches.remove(ref);
  _accumulatedTime.remove(ref);
  AppConfig.logger.i('Stopwatch limpiado para $ref; tiempo total: $total s.');
  return total;
}