From ebeffe81d8f5bb431c2e1c3968c48f28b7d06869 Mon Sep 17 00:00:00 2001 From: Mauro Rappa Date: Fri, 4 Nov 2016 14:45:49 +0000 Subject: curl -w: added more decimal digits to timing counters Now showing microsecond resolution. Closes #1106 --- src/tool_writeout.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/tool_writeout.c b/src/tool_writeout.c index 6e94afe42..60221d09b 100644 --- a/src/tool_writeout.c +++ b/src/tool_writeout.c @@ -170,41 +170,41 @@ void ourWriteOut(CURL *curl, struct OutStruct *outs, const char *writeinfo) if(CURLE_OK == curl_easy_getinfo(curl, CURLINFO_REDIRECT_TIME, &doubleinfo)) - fprintf(stream, "%.3f", doubleinfo); + fprintf(stream, "%.6f", doubleinfo); break; case VAR_TOTAL_TIME: if(CURLE_OK == curl_easy_getinfo(curl, CURLINFO_TOTAL_TIME, &doubleinfo)) - fprintf(stream, "%.3f", doubleinfo); + fprintf(stream, "%.6f", doubleinfo); break; case VAR_NAMELOOKUP_TIME: if(CURLE_OK == curl_easy_getinfo(curl, CURLINFO_NAMELOOKUP_TIME, &doubleinfo)) - fprintf(stream, "%.3f", doubleinfo); + fprintf(stream, "%.6f", doubleinfo); break; case VAR_CONNECT_TIME: if(CURLE_OK == curl_easy_getinfo(curl, CURLINFO_CONNECT_TIME, &doubleinfo)) - fprintf(stream, "%.3f", doubleinfo); + fprintf(stream, "%.6f", doubleinfo); break; case VAR_APPCONNECT_TIME: if(CURLE_OK == curl_easy_getinfo(curl, CURLINFO_APPCONNECT_TIME, &doubleinfo)) - fprintf(stream, "%.3f", doubleinfo); + fprintf(stream, "%.6f", doubleinfo); break; case VAR_PRETRANSFER_TIME: if(CURLE_OK == curl_easy_getinfo(curl, CURLINFO_PRETRANSFER_TIME, &doubleinfo)) - fprintf(stream, "%.3f", doubleinfo); + fprintf(stream, "%.6f", doubleinfo); break; case VAR_STARTTRANSFER_TIME: if(CURLE_OK == curl_easy_getinfo(curl, CURLINFO_STARTTRANSFER_TIME, &doubleinfo)) - fprintf(stream, "%.3f", doubleinfo); + fprintf(stream, "%.6f", doubleinfo); break; case VAR_SIZE_UPLOAD: if(CURLE_OK == -- cgit v1.2.1