reset static method

  1. @visibleForTesting
void reset()

Clears the measurement so start can be called again. Test-only.

Implementation

@visibleForTesting
static void reset() {
  _stopwatch
    ..stop()
    ..reset();
  _coldStart = null;
  version.value++;
}