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