elapsedTicks property

int elapsedTicks

The elapsed number of clock ticks since calling start while the Stopwatch is running.

This is the elapsed number of clock ticks between calling start and calling stop.

Is 0 if the Stopwatch has never been started.

The elapsed number of clock ticks increases by frequency every second.

Implementation

int get elapsedTicks {
  return (_stop ?? _now()) - _start;
}