lap method

Duration lap()

Returns the elapsed time, then resets the stopwatch.

Implementation

Duration lap() {
  var e = this.elapsed;
  this.reset();
  return e;
}