upTime property

Duration get upTime
inherited

Up time.

Implementation

Duration get upTime => (_started == null)
    ? Duration.zero
    : Duration(
        microseconds:
            (_stopped ?? DateTime.now().microsecondsSinceEpoch) - _started!);