From ca0fd33d2d3ecca13bc78893e165a34682b4dcd2 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 20 Nov 2001 15:00:50 +0000 Subject: Georg Horn's STARTTRANSFER_TIME patch --- src/writeout.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src') 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)) -- cgit v1.2.3