end method

void end([
  1. String? label
])

Implementation

void end([String? label]) {
  if (!kDebugMode) return;

  if (startTime == null) {
    print("Must call `start` function before end function called");
    return;
  }

  var end = DateTime.now();
  print("======================================");
  print("========== TIME LAPSE END ============");
  _displayLabel(label);
  _unexpectableLabel(end.toString());
  print("===== TIME DIFFERENCE FROM START =====");
  _unexpectableLabel(end.difference(startTime!).inMilliseconds.toString());
}