cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Making sense of CURLINFO_*_TIME values

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Wed, 24 Jul 2013 22:09:26 +0200

On Wed, Jul 24, 2013 at 09:07:18AM -0400, Peter Schwartz wrote:
> I've also noticed that there's an inconsistency between the libcurl
> documentation and the curl CLI client documentation:
>
> From http://curl.haxx.se/docs/manpage.html: "time_starttransfer The
> time, in seconds, it took from the start until the first byte was just
> about to be transferred. This includes time_pretransfer and also the
> time the server needed to calculate the result."
>
> From http://curl.haxx.se/libcurl/c/curl_easy_getinfo.html:
> "CURLINFO_STARTTRANSFER_TIME. The time it took from the start until
> the first byte is received by libcurl."
>
> If the CLI client uses the same conventions as the library, shouldn't
> the man page read "time_starttransfer The time, in seconds, it took
> from the start until the first byte is received"?

It sounds like the first one was talking about the uploading case and the
second one is talking about the downloading case. It's something that ought to
be clarified in the docs.

>>> Dan
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2013-07-24