elapsed method
Retorna el tiempo total reproducido para la referencia ref
Implementation
int elapsed(String ref) {
if (_stopwatches.containsKey(ref)) {
// Suma el acumulado más el tiempo actual (si está corriendo)
return _accumulatedTime[ref]! +
(_stopwatches[ref]!.isRunning ? _stopwatches[ref]!.elapsed.inSeconds : 0);
}
return 0;
}