1. 程式人生 > >Alamofire原始碼導讀四:統計資訊

Alamofire原始碼導讀四:統計資訊

時間順序如上圖:

self.latency = initialResponseTime - requestStartTime
self.requestDuration = requestCompletedTime - requestStartTime
self.serializationDuration = serializationCompletedTime - requestCompletedTime
self.totalDuration = serializationCompletedTime - requestStartTime