start method
Starts (or resumes) the stopwatch for ref.
Implementation
void start({String? ref}) {
ref ??= currentReference;
if (!_stopwatches.containsKey(ref)) {
_stopwatches[ref] = Stopwatch();
_accumulatedTime[ref] = 0;
AppConfig.logger.i('NeomStopwatch created for $ref.');
}
if (!_stopwatches[ref]!.isRunning) {
_stopwatches[ref]!.start();
AppConfig.logger.i('NeomStopwatch started for $ref.');
}
currentReference = ref;
}