pause method
Pausa el stopwatch para ref
y acumula el tiempo transcurrido
Implementation
void pause(String ref) {
if (_stopwatches.containsKey(ref) && _stopwatches[ref]!.isRunning) {
_stopwatches[ref]!.stop();
// Acumula los segundos transcurridos
_accumulatedTime[ref] = _accumulatedTime[ref]! + _stopwatches[ref]!.elapsed.inSeconds;
_stopwatches[ref]!.reset();
AppConfig.logger.i('Stopwatch pausado para $ref; tiempo acumulado: ${_accumulatedTime[ref]} s.');
}
}