[iOS] How to get the duration in ApolloClient.fetch

I want to get the duration of each request, but I can not find any APIs to get the duration in method ApolloClient.fetch.
Now I use Date() to record the time before request and after response.
So, is there any method to get the duration more accurate?
My iOS app uses Apollo client. (0.51.2).

Hi @alex.m - there are no methods in apollo-ios that track request duration. This is something you’ll need to implement within your own app or within the various interceptors of the request chain.

thanks for your reply.