I have a URLSessionDataTask
instance and I would like to know when the operation started (a Date
object) so I can calculate how much time has elapsed.
I've found URLSessionTaskTransactionMetrics
in Apple's documentation (https://developer.apple.com/documentation/foundation/urlsessiontasktransactionmetrics#declarations) but this does not show how to get the transactionMetrics
property, unless I'm missing something obvious.