cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Response timing

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 11 Jul 2006 23:33:54 +0200 (CEST)

On Tue, 11 Jul 2006, Rastislav Wartiak wrote:

> I'm using libcurl in my application and I need to measure HTTP server
> response time. IMHO this should be the time between last byte of request
> sent and first byte of response received. I can use write function callback
> to get the end point, but I don't know how to get the start. Looking into
> source code of curl_easy_perform it does a lot of things so starting the
> clock before calling this function is not accurate. Is there any callback
> function I can use? Or anything else? Even for GET request?

Nopes, libcurl doesn't provide any timers for this measurement as far as I can
see. Feel free to provide a patch that adds one. It's pretty cheap to just add
another one.

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2006-07-11