uptime property

int uptime

Calculates the context uptime as from the start time.

Return number of milliseconds from the context start time.

Implementation

int get uptime {
  return DateTime.now().toUtc().millisecondsSinceEpoch -
      _startTime.millisecondsSinceEpoch;
}