endTiming method

void endTiming()

Ends timing of an execution block, calculates elapsed time and updates the associated counter.

Implementation

void endTiming() {
  if (_callback != null) {
    var elapsed = DateTime.now().toUtc().millisecondsSinceEpoch - _start;
    _callback!.endTiming(_counter, elapsed);
  }
}