summaryrefslogtreecommitdiff
path: root/lib/progress.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/progress.c')
-rw-r--r--lib/progress.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/progress.c b/lib/progress.c
index acebec481..d35eb217c 100644
--- a/lib/progress.c
+++ b/lib/progress.c
@@ -181,6 +181,14 @@ struct curltime Curl_pgrsTime(struct Curl_easy *data, timerid timer)
case TIMER_NONE:
/* mistake filter */
break;
+#ifdef CURLDEBUG
+ case TIMER_ADDED: {
+ /* relative time from the creation of the multi handle */
+ struct Curl_multi *m = data->multi_easy ? data->multi_easy : data->multi;
+ data->progress.t_added = Curl_timediff_us(now, m->t_created);
+ break;
+ }
+#endif
case TIMER_STARTOP:
/* This is set at the start of a transfer */
data->progress.t_startop = now;