reset method

void reset()

Resets stopwatch back to zero.

Implementation

void reset() {
  if (_running) {
    pause();
    _running = false;
    _atPause = Duration(microseconds: 0);
  } else {
    _atPause = Duration(microseconds: 0);
  }
}