Lines Matching refs:seconds
32 static void time2str(char *r, curl_off_t seconds)
35 if(seconds <= 0) {
39 h = seconds / CURL_OFF_T_C(3600);
41 m = (seconds - (h*CURL_OFF_T_C(3600))) / CURL_OFF_T_C(60);
42 s = (seconds - (h*CURL_OFF_T_C(3600))) - (m*CURL_OFF_T_C(60));
49 d = seconds / CURL_OFF_T_C(86400);
50 h = (seconds - (d*CURL_OFF_T_C(86400))) / CURL_OFF_T_C(3600);
365 int countindex; /* amount of seconds stored in the speeder array */
380 timespent = (curl_off_t)data->progress.timespent/1000000; /* seconds */
410 here and we expect it to never wrap as 2^32 is a lot of seconds! */
414 array. With N_ENTRIES filled in, we have about N_ENTRIES-1 seconds of
416 after two seconds we've filled in three entries etc. */
420 /* first of all, we don't do this if there's no counted seconds yet */