Swift 5 Compatible version.
This is now using response.metrics!.taskInterval.duration for compatibility with Swift 5's URLSessionConnectionMetrics
Swift 5 Compatible version.
This is now using response.metrics!.taskInterval.duration for compatibility with Swift 5's URLSessionConnectionMetrics