start method

void start ()
override

Starts the Stopwatch.

The elapsed count is increasing monotonically. If the Stopwatch has been stopped, then calling start again restarts it without resetting the elapsed count.

If the Stopwatch is currently running, then calling start does nothing.

Implementation

void start() {
  if (isRunning) return;
  if (_start == null) {
    _start = _now();
  } else {
    _start = _now() - (_stop - _start);
    _stop = null;
  }
}