/curl/lib/ |
H A D | timediff.c | 37 struct timeval *curlx_mstotv(struct timeval *tv, timediff_t ms) in curlx_mstotv() 46 timediff_t tv_sec = ms / 1000; in curlx_mstotv() 47 timediff_t tv_usec = (ms % 1000) * 1000; /* max=999999 */ in curlx_mstotv() 85 timediff_t curlx_tvtoms(struct timeval *tv) in curlx_tvtoms() 87 return (tv->tv_sec*1000) + (timediff_t)(((double)tv->tv_usec)/1000.0); in curlx_tvtoms()
|
H A D | timediff.h | 31 typedef curl_off_t timediff_t; typedef 45 struct timeval *curlx_mstotv(struct timeval *tv, timediff_t ms); 50 timediff_t curlx_tvtoms(struct timeval *tv);
|
H A D | timeval.c | 201 timediff_t Curl_timediff(struct curltime newer, struct curltime older) in Curl_timediff() 203 timediff_t diff = (timediff_t)newer.tv_sec-older.tv_sec; in Curl_timediff() 215 timediff_t Curl_timediff_ceil(struct curltime newer, struct curltime older) in Curl_timediff_ceil() 217 timediff_t diff = (timediff_t)newer.tv_sec-older.tv_sec; in Curl_timediff_ceil() 229 timediff_t Curl_timediff_us(struct curltime newer, struct curltime older) in Curl_timediff_us() 231 timediff_t diff = (timediff_t)newer.tv_sec-older.tv_sec; in Curl_timediff_us()
|
H A D | timeval.h | 44 timediff_t Curl_timediff(struct curltime newer, struct curltime older); 52 timediff_t Curl_timediff_ceil(struct curltime newer, struct curltime older); 60 timediff_t Curl_timediff_us(struct curltime newer, struct curltime older);
|
H A D | select.h | 78 timediff_t timeout_ms); 84 int Curl_poll(struct pollfd ufds[], unsigned int nfds, timediff_t timeout_ms); 85 int Curl_wait_ms(timediff_t timeout_ms);
|
H A D | connect.h | 37 timediff_t Curl_timeleft(struct Curl_easy *data, 50 timediff_t Curl_shutdown_timeleft(struct connectdata *conn, int sockindex, 55 timediff_t Curl_conn_shutdown_timeleft(struct connectdata *conn,
|
H A D | pingpong.c | 50 timediff_t Curl_pp_state_timeout(struct Curl_easy *data, in Curl_pp_state_timeout() 54 timediff_t timeout_ms; /* in milliseconds */ in Curl_pp_state_timeout() 55 timediff_t response_time = (data->set.server_response_timeout) ? in Curl_pp_state_timeout() 70 timediff_t timeout2_ms = data->set.timeout - /* timeout time */ in Curl_pp_state_timeout() 90 timediff_t interval_ms; in Curl_pp_statemach() 91 timediff_t timeout_ms = Curl_pp_state_timeout(data, pp, disconnecting); in Curl_pp_statemach()
|
H A D | pingpong.h | 59 timediff_t response_time; /* When no timeout is given, this is the amount of 96 timediff_t Curl_pp_state_timeout(struct Curl_easy *data,
|
H A D | progress.c | 163 timediff_t *delta = NULL; in Curl_pgrsTimeWas() 226 timediff_t us = Curl_timediff_us(timestamp, data->progress.t_startsingle); in Curl_pgrsTimeWas() 282 timediff_t Curl_pgrsLimitWaitTime(struct pgrs_dir *d, in Curl_pgrsLimitWaitTime() 287 timediff_t minimum; in Curl_pgrsLimitWaitTime() 288 timediff_t actual; in Curl_pgrsLimitWaitTime() 298 minimum = (timediff_t) (CURL_OFF_T_C(1000) * size / speed_limit); in Curl_pgrsLimitWaitTime() 300 minimum = (timediff_t) (size / speed_limit); in Curl_pgrsLimitWaitTime() 441 timediff_t span_ms; in progress_calc()
|
H A D | rename.c | 52 timediff_t diff; in Curl_rename()
|
H A D | speedcheck.c | 55 timediff_t howlong = Curl_timediff(now, data->state.keeps_speed); in Curl_speedcheck()
|
H A D | connect.c | 101 timediff_t Curl_timeleft(struct Curl_easy *data, in Curl_timeleft() 105 timediff_t timeleft_ms = 0; in Curl_timeleft() 106 timediff_t ctimeleft_ms = 0; in Curl_timeleft() 132 timediff_t ctimeout_ms = (data->set.connecttimeout > 0) ? in Curl_timeleft() 164 timediff_t left_ms; in Curl_shutdown_timeleft() 181 timediff_t left_ms = 0, ms; in Curl_conn_shutdown_timeleft() 406 timediff_t delay_ms, in eyeballer_new() 407 timediff_t timeout_ms, in eyeballer_new() 519 timediff_t timeoutms) in baller_start() 546 timediff_t timeoutms) in baller_start_next() [all …]
|
H A D | progress.h | 61 timediff_t Curl_pgrsLimitWaitTime(struct pgrs_dir *d,
|
H A D | asyn-ares.c | 299 timediff_t milli = curlx_tvtoms(timeout); in Curl_resolver_getsock() 314 static int waitperform(struct Curl_easy *data, timediff_t timeout_ms) in waitperform() 444 timediff_t timeout; in Curl_resolver_wait_resolv() 463 timediff_t timeout_ms; in Curl_resolver_wait_resolv() 480 timeout_ms = (timediff_t)(tvp->tv_usec/1000); in Curl_resolver_wait_resolv() 495 timediff_t timediff = Curl_timediff(now2, now); /* spent time */ in Curl_resolver_wait_resolv()
|
H A D | urldata.h | 1079 timediff_t timespent; 1081 timediff_t t_postqueue; 1082 timediff_t t_nslookup; 1083 timediff_t t_connect; 1084 timediff_t t_appconnect; 1085 timediff_t t_pretransfer; 1086 timediff_t t_posttransfer; 1087 timediff_t t_starttransfer; 1088 timediff_t t_redirect;
|
H A D | select.c | 70 int Curl_wait_ms(timediff_t timeout_ms) in Curl_wait_ms() 124 timediff_t timeout_ms) /* milliseconds to wait */ in our_select() 188 timediff_t timeout_ms) /* milliseconds to wait */ in Curl_socket_check() 268 int Curl_poll(struct pollfd ufds[], unsigned int nfds, timediff_t timeout_ms) in Curl_poll()
|
H A D | multiif.h | 32 void Curl_expire(struct Curl_easy *data, timediff_t milli, expire_id);
|
H A D | asyn-thread.c | 170 timediff_t interval_end; 616 timediff_t elapsed = Curl_timediff(Curl_now(), in Curl_resolver_is_resolved() 641 timediff_t milli; in Curl_resolver_getsock() 642 timediff_t ms; in Curl_resolver_getsock()
|
H A D | conncache.c | 517 timediff_t highscore = -1; in cpool_bundle_get_oldest_idle() 518 timediff_t score; in cpool_bundle_get_oldest_idle() 550 timediff_t highscore =- 1; in cpool_get_oldest_idle() 551 timediff_t score; in cpool_get_oldest_idle() 966 timediff_t next_from_now_ms = 0, ms; in cpool_perform() 1157 timediff_t timespent; in cpool_shutdown_all() 1169 if(timespent >= (timediff_t)timeout_ms) { in cpool_shutdown_all() 1213 timediff_t elapsed; in Curl_cpool_prune_dead()
|
H A D | hostip.h | 134 timediff_t timeoutms);
|
H A D | gopher.c | 143 timediff_t timeout_ms; in gopher_do()
|
/curl/tests/unit/ |
H A D | unit2600.c | 83 timediff_t he_timeout_ms; 84 timediff_t cf4_fail_delay_ms; 85 timediff_t cf6_fail_delay_ms; 89 timediff_t min_duration_ms; 90 timediff_t max_duration_ms; 98 timediff_t first_created; 99 timediff_t last_created; 118 timediff_t fail_delay_ms; 140 timediff_t duration_ms; in cf_test_connect() 195 timediff_t created_at; in cf_test_create() [all …]
|
H A D | unit1303.c | 76 timediff_t result; 146 timediff_t timeout;
|
H A D | unit1323.c | 55 timediff_t result = Curl_timediff(tests[i].first, tests[i].second);
|
H A D | unit1399.c | 55 static bool usec_matches_seconds(timediff_t time_usec, int expected_seconds) in usec_matches_seconds()
|