cURL / Mailing Lists / curl-library / Single Mail

curl-library

Response timing

From: Rastislav Wartiak <rastik_at_tereus.eu>
Date: Tue, 11 Jul 2006 20:54:51 +0200

Hello,

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?

Thanks for advices,
RW
Received on 2006-07-11