executionTime property

Duration get executionTime

The execution time of the test.

Implementation

Duration get executionTime {
  final testEntry = closingTestEntry;
  if (testEntry == null) {
    throw StateError('The test is not closed yet.');
  }
  return testEntry.executionTime(openingTestEntry.timestamp);
}