elapsed property Null safety

Duration elapsed

The elapsedTicks counter converted to a Duration.

Implementation

Duration get elapsed {
  return Duration(microseconds: elapsedMicroseconds);
}