diff options
author | Daniel Stenberg <daniel@haxx.se> | 2001-11-20 15:00:50 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2001-11-20 15:00:50 +0000 |
commit | ca0fd33d2d3ecca13bc78893e165a34682b4dcd2 (patch) | |
tree | dabe130a246fdf0d04f5d3196b644729e6d2ef15 /src | |
parent | 271f96f78f04f556ba953b10d31bfed2202ad439 (diff) |
Georg Horn's STARTTRANSFER_TIME patch
Diffstat (limited to 'src')
-rw-r--r-- | src/writeout.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/writeout.c b/src/writeout.c index 2c1b3aa24..a786d2d07 100644 --- a/src/writeout.c +++ b/src/writeout.c @@ -37,6 +37,7 @@ typedef enum { VAR_NAMELOOKUP_TIME, VAR_CONNECT_TIME, VAR_PRETRANSFER_TIME, + VAR_STARTTRANSFER_TIME, VAR_SIZE_DOWNLOAD, VAR_SIZE_UPLOAD, VAR_SPEED_DOWNLOAD, @@ -61,6 +62,7 @@ static struct variable replacements[]={ {"time_namelookup", VAR_NAMELOOKUP_TIME}, {"time_connect", VAR_CONNECT_TIME}, {"time_pretransfer", VAR_PRETRANSFER_TIME}, + {"time_starttransfer", VAR_STARTTRANSFER_TIME}, {"size_header", VAR_HEADER_SIZE}, {"size_request", VAR_REQUEST_SIZE}, {"size_download", VAR_SIZE_DOWNLOAD}, @@ -138,6 +140,11 @@ void ourWriteOut(CURL *curl, char *writeinfo) curl_easy_getinfo(curl, CURLINFO_PRETRANSFER_TIME, &doubleinfo)) fprintf(stream, "%.3f", doubleinfo); break; + case VAR_STARTTRANSFER_TIME: + if(CURLE_OK == + curl_easy_getinfo(curl, CURLINFO_STARTTRANSFER_TIME, &doubleinfo)) + fprintf(stream, "%.3f", doubleinfo); + break; case VAR_SIZE_UPLOAD: if(CURLE_OK == curl_easy_getinfo(curl, CURLINFO_SIZE_UPLOAD, &doubleinfo)) |