aboutsummaryrefslogtreecommitdiff
path: root/src/curl
diff options
context:
space:
mode:
Diffstat (limited to 'src/curl')
-rw-r--r--src/curl/curl.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/curl/curl.c b/src/curl/curl.c
index 0d9342b60..9284d7b45 100644
--- a/src/curl/curl.c
+++ b/src/curl/curl.c
@@ -502,6 +502,20 @@ GNUNET_CURL_perform (struct GNUNET_CURL_Context *ctx)
502 j = download_get_result (&job->db, 502 j = download_get_result (&job->db,
503 job->easy_handle, 503 job->easy_handle,
504 &response_code); 504 &response_code);
505#if ENABLE_BENCHMARK
506 {
507 char *url = NULL;
508 double total = 0;
509 struct UrlRequestData *urd;
510 CURLcode res;
511 res = curl_easy_getinfo (cmsg->easy_handle, CURLINFO_TOTAL_TIME, &total);
512 GNUNET_break (CURLE_OK == res);
513 curl_easy_getinfo (cmsg->easy_handle, CURLINFO_EFFECTIVE_URL, &url);
514 urd = get_url_benchmark_data (url);
515 urd->count++;
516 urd->time.rel_value_us += total * 1000 * 1000;
517 }
518#endif
505 job->jcc (job->jcc_cls, 519 job->jcc (job->jcc_cls,
506 response_code, 520 response_code,
507 j); 521 j);