uptime property

Duration get uptime

Uptime since metrics started

Implementation

Duration get uptime {
  if (startTime == null) return Duration.zero;
  return DateTime.now().difference(startTime!);
}