stopAndClear method
Stops, removes the stopwatch for ref, and returns total seconds.
Implementation
int stopAndClear(String ref) {
int total = stop(ref: ref);
_stopwatches.remove(ref);
_accumulatedTime.remove(ref);
AppConfig.logger.i('NeomStopwatch cleared for $ref; total: ${total}s.');
return total;
}