0

In ANDROID, is there any way to get the reponse time from an http request (Using httpClient for instance)

Am looking for an alternative to what Curl does.

1 Answer 1

0

No there is no API to get you that. General approach is to capture the time before sending the request and after reading the response. Difference between them should give you a close but not the exact time for the response.

1
  • Thanks for the response, but i think that calculating the diference inside the android app is not much accurate.whereas with Curl, you have the exact time (+ other times) that the server took to respond
    – ProXamer
    Commented Jul 10, 2013 at 15:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.