cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-tracker mailing list Archives

[ curl-Bugs-1502181 ] CURLINFO_TOTAL_TIME includes CURLINFO_CONNECT_TIME

From: SourceForge.net <noreply_at_sourceforge.net>
Date: Wed, 07 Jun 2006 04:25:55 -0700

Bugs item #1502181, was opened at 2006-06-07 04:25
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=1502181&group_id=976

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: documentation
Group: wrong content
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Daniel Stenberg (bagder)
Summary: CURLINFO_TOTAL_TIME includes CURLINFO_CONNECT_TIME

Initial Comment:
curl_easy_getinfo says:

"CURLINFO_TOTAL_TIME. Time of the previous transfer.
This time does not include the connect time (CT), so
if you want the complete operation time, you should
add that."

Same statement at two other places in the same
document.

But that is not correct, TOTAL_TIME includes
PRETRANSFER_TIME (and CONNECT_TIME etc).

Simple test:

time curl -w 'r=%{time_redirect} n=%{time_namelookup}
c=%{time_connect} p=%{time_pretransfer}
s=%{time_starttransfer} t=%{time_total}'
http://somehost/
<html>
...
</html>
r=0.000 n=0.001 c=0.465 p=0.465 s=1.119 t=1.120
real 0m1.132s
user 0m0.010s
sys 0m0.000s

TOTAL_TIME + CONNECT_TIME is greater than execution
time, so TOTAL_TIME is indeed the total time.

Greetings,
dm_at_nettraffic.de

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=1502181&group_id=976
Received on 2006-06-07

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET