cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: CURLINFO_STARTTRANSFER_TIME question

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 2 Feb 2011 13:59:03 +0100 (CET)

On Tue, 1 Feb 2011, Pankaj Takawale wrote:

> Im fetching http url using curl. I want to know the time when http-server
> received the request, and started sending response back to client.
>
> Can I get this time by "current time - CURLINFO_STARTTRANSFER_TIME" ?

Yes, almost. The CURLINFO_STARTTRANSFER_TIME is that relative time, you don't
have to do the math yourself! =)

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