cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Metrics on server execution time and transfer time

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 4 May 2011 10:32:35 +0200 (CEST)

On Wed, 4 May 2011, Murugaprabu Marimuthu wrote:

> The delta between CURLINFO_PRETRANSFER_TIME and CURLINFO_STARTTRANSFER_TIME
> gives the sum of the time spent by the client in sending the HTTP request
> and the the time server spends in calculating a result.

... and delivering the first byte back to the client.

> What I want is the time spent by the client to send the HTTP request
> seperately

libcurl doesn't store nor expose that timing info. You'll have to either add
that to libcurl or use the DEBUGFUNCTION callback and determine that on your
own.

> the time server spends in calculating a result seperately.

That's not exactly possible. You would have to time it from the last (or
first?) byte of the request is sent until the first byte of the response is
received as all timing is done client-side.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2011-05-04