W3cubDocs

/Dart 2

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;
}

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/2.0.0/dart-core/Stopwatch/elapsedTicks.html