elapsedTicks property
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
@override
int get elapsedTicks {
if (_start == null) {
return 0;
}
return (_stop == null) ? (_now() - _start!) : (_stop! - _start!);
}