Duration property

TimeSpan get Duration
Gets the duration.

Implementation

TimeSpan get Duration =>
    TimeSpan(_endTime.difference(_startTime).inMilliseconds);