Lines Matching defs:seconds
40 static void time2str(char *r, curl_off_t seconds)
43 if(seconds <= 0) {
47 h = seconds / CURL_OFF_T_C(3600);
49 curl_off_t m = (seconds - (h*CURL_OFF_T_C(3600))) / CURL_OFF_T_C(60);
50 curl_off_t s = (seconds - (h*CURL_OFF_T_C(3600))) - (m*CURL_OFF_T_C(60));
57 curl_off_t d = seconds / CURL_OFF_T_C(86400);
58 h = (seconds - (d*CURL_OFF_T_C(86400))) / CURL_OFF_T_C(3600);
415 int countindex; /* amount of seconds stored in the speeder array */
428 here and we expect it to never wrap as 2^32 is a lot of seconds! */
432 array. With N_ENTRIES filled in, we have about N_ENTRIES-1 seconds of
434 after two seconds we've filled in three entries etc. */
437 /* first of all, we don't do this if there's no counted seconds yet */
490 (curl_off_t)data->progress.timespent/1000000; /* seconds */