start method
Inicia (o reanuda) el stopwatch para la referencia ref
Implementation
void start(String ref) {
// Si no existe, se crea un Stopwatch para esta referencia y se inicializa el acumulado
if (!_stopwatches.containsKey(ref)) {
_stopwatches[ref] = Stopwatch();
_accumulatedTime[ref] = 0;
AppConfig.logger.i('Creado stopwatch para $ref.');
}
// Si no está corriendo, se inicia
if (!_stopwatches[ref]!.isRunning) {
_stopwatches[ref]!.start();
AppConfig.logger.i('Stopwatch iniciado para $ref.');
} else {
AppConfig.logger.i('El stopwatch ya está corriendo para $ref.');
}
currentReference = ref;
}