Georg Horn's STARTTRANSFER_TIME patch

This commit is contained in:
Daniel Stenberg 2001-11-20 15:00:50 +00:00
parent 271f96f78f
commit ca0fd33d2d
9 changed files with 41 additions and 11 deletions

View file

@ -43,6 +43,7 @@ CURLcode Curl_initinfo(struct SessionHandle *data)
pro->t_nslookup = 0;
pro->t_connect = 0;
pro->t_pretransfer = 0;
pro->t_starttransfer = 0;
info->httpcode = 0;
info->httpversion=0;
@ -107,6 +108,9 @@ CURLcode Curl_getinfo(struct SessionHandle *data, CURLINFO info, ...)
case CURLINFO_PRETRANSFER_TIME:
*param_doublep = data->progress.t_pretransfer;
break;
case CURLINFO_STARTTRANSFER_TIME:
*param_doublep = data->progress.t_starttransfer;
break;
case CURLINFO_SIZE_UPLOAD:
*param_doublep = data->progress.uploaded;
break;