/curl/lib/ |
H A D | timediff.c | 46 timediff_t tv_sec = ms / 1000; in curlx_mstotv() local 51 if(tv_sec > TIME_T_MAX) in curlx_mstotv() 52 tv_sec = TIME_T_MAX; in curlx_mstotv() 54 tv->tv_sec = (time_t)tv_sec; in curlx_mstotv() 59 if(tv_sec > LONG_MAX) in curlx_mstotv() 60 tv_sec = LONG_MAX; in curlx_mstotv() 62 tv->tv_sec = (long)tv_sec; in curlx_mstotv() 67 if(tv_sec > INT_MAX) in curlx_mstotv() 68 tv_sec = INT_MAX; in curlx_mstotv() 70 tv->tv_sec = (int)tv_sec; in curlx_mstotv() [all …]
|
H A D | timeval.c | 54 now.tv_sec = (time_t)(milliseconds / 1000); in Curl_now() 97 cnow.tv_sec = tsnow.tv_sec; in Curl_now() 109 cnow.tv_sec = tsnow.tv_sec; in Curl_now() 120 cnow.tv_sec = now.tv_sec; in Curl_now() 125 cnow.tv_sec = time(NULL); in Curl_now() 157 cnow.tv_sec = usecs / 1000000; in Curl_now() 175 ret.tv_sec = now.tv_sec; in Curl_now() 188 now.tv_sec = time(NULL); in Curl_now() 203 timediff_t diff = (timediff_t)newer.tv_sec-older.tv_sec; in Curl_timediff() 217 timediff_t diff = (timediff_t)newer.tv_sec-older.tv_sec; in Curl_timediff_ceil() [all …]
|
H A D | speedcheck.c | 50 if(!data->state.keeps_speed.tv_sec) in Curl_speedcheck() 70 data->state.keeps_speed.tv_sec = 0; in Curl_speedcheck()
|
H A D | timeval.h | 32 time_t tv_sec; /* seconds */ member
|
/curl/tests/libtest/ |
H A D | testutil.c | 40 now.tv_sec = (long)(milliseconds / 1000); in tutil_tvnow() 59 now.tv_sec = tsnow.tv_sec; in tutil_tvnow() 72 now.tv_sec = time(NULL); in tutil_tvnow() 101 now.tv_sec = time(NULL); in tutil_tvnow() 116 return (long)(newer.tv_sec-older.tv_sec)*1000+ in tutil_tvdiff() 127 if(newer.tv_sec != older.tv_sec) in tutil_tvdiff_secs() 128 return (double)(newer.tv_sec-older.tv_sec)+ in tutil_tvdiff_secs()
|
H A D | lib1531.c | 86 timeout.tv_sec = 1; in test() 92 if(timeout.tv_sec > 1) { in test() 93 timeout.tv_sec = 1; in test()
|
H A D | lib582.c | 134 timeout->tv_sec = -1; in curlTimerCallback() 173 result = (ssize_t)((timeout->tv_sec - now.tv_sec) * 1000000 + in getMicroSecondTimeout() 309 if(timeout.tv_sec != -1) { in test() 311 tv.tv_sec = usTimeout / 1000000; in test() 315 tv.tv_sec = 0; in test() 325 if(timeout.tv_sec != -1 && getMicroSecondTimeout(&timeout) == 0) { in test()
|
H A D | lib1507.c | 103 timeout.tv_sec = 1; in test() 109 if(timeout.tv_sec > 1) { in test() 110 timeout.tv_sec = 1; in test()
|
H A D | lib530.c | 166 timeout->tv_sec = -1; in curlTimerCallback() 205 result = (ssize_t)((timeout->tv_sec - now.tv_sec) * 1000000 + in getMicroSecondTimeout() 313 if(timeout.tv_sec != -1) { in testone() 315 tv.tv_sec = usTimeout / 1000000; in testone() 319 tv.tv_sec = 0; in testone() 336 if(timeout.tv_sec != -1 && getMicroSecondTimeout(&timeout) == 0) { in testone()
|
H A D | lib597.c | 105 interval.tv_sec = itimeout/1000; in test() 109 interval.tv_sec = TEST_HANG_TIMEOUT/1000 - 1; in test()
|
H A D | lib591.c | 123 interval.tv_sec = itimeout/1000; in test() 127 interval.tv_sec = 0; in test()
|
H A D | testtrace.c | 106 epoch_offset = time(NULL) - tv.tv_sec; in libtest_debug_cb() 109 secs = epoch_offset + tv.tv_sec; in libtest_debug_cb()
|
/curl/src/ |
H A D | tool_util.c | 44 now.tv_sec = (long)(count.QuadPart / tool_freq.QuadPart); in tvnow() 59 now.tv_sec = (long)(milliseconds / 1000); in tvnow() 79 now.tv_sec = tsnow.tv_sec; in tvnow() 92 now.tv_sec = time(NULL); in tvnow() 121 now.tv_sec = time(NULL); in tvnow() 136 return (long)(newer.tv_sec-older.tv_sec)*1000+ in tvdiff()
|
H A D | tool_cb_dbg.c | 43 static const char *hms_for_sec(time_t tv_sec) in hms_for_sec() argument 50 if(tv_sec != cached_tv_sec) { in hms_for_sec() 55 epoch_offset = time(NULL) - tv_sec; in hms_for_sec() 58 secs = epoch_offset + tv_sec; in hms_for_sec() 63 cached_tv_sec = tv_sec; in hms_for_sec() 113 hms_for_sec(tv.tv_sec), (long)tv.tv_usec); in tool_debug_cb()
|
H A D | tool_sleep.c | 54 timeout.tv_sec = ms / 1000L; in tool_go_sleep()
|
H A D | tool_cb_rea.c | 73 timeout.tv_sec = wait/1000; in tool_read_cb() 135 if(prev.tv_sec) in tool_readbusy_cb()
|
H A D | tool_filetime.c | 137 times[0].tv_sec = times[1].tv_sec = (time_t)filetime; in setfiletime()
|
/curl/docs/examples/ |
H A D | multi-legacy.c | 98 timeout.tv_sec = 1; in main() 103 timeout.tv_sec = curl_timeo / 1000; in main() 104 if(timeout.tv_sec > 1) in main() 105 timeout.tv_sec = 1; in main()
|
H A D | ephiperfifo.c | 151 its.it_interval.tv_sec = 0; in multi_timer_cb() 153 its.it_value.tv_sec = timeout_ms / 1000; in multi_timer_cb() 160 its.it_interval.tv_sec = 0; in multi_timer_cb() 162 its.it_value.tv_sec = 0; in multi_timer_cb() 491 its.it_interval.tv_sec = 0; in main() 492 its.it_value.tv_sec = 1; in main()
|
/curl/tests/unit/ |
H A D | unit1399.c | 51 data->progress.t_startsingle.tv_sec = fake_now.tv_sec + seconds_offset; in fake_t_startsingle_time() 93 data.progress.start.tv_sec = now.tv_sec - 2;
|
H A D | unit1323.c | 58 (long)tests[i].first.tv_sec, 60 (long)tests[i].second.tv_sec,
|
H A D | unit1606.c | 71 now.tv_sec = ++counter; in runawhile() 75 finaltime = (int)(now.tv_sec - 1); in runawhile()
|
H A D | unit1303.c | 56 #define NOW(x,y) now.tv_sec = x; now.tv_usec = y 140 testdata->progress.t_startsingle.tv_sec = BASE; 142 testdata->progress.t_startop.tv_sec = BASE;
|
H A D | unit1309.c | 54 printf("%ld.%ld[%d]", (long)t->key.tv_sec, in splayprint() 88 key.tv_sec = 0; 118 key.tv_sec = 0;
|
/curl/tests/server/ |
H A D | util.c | 103 epoch_offset = time(NULL) - tv.tv_sec; in logmsg() 106 sec = epoch_offset + tv.tv_sec; in logmsg() 258 pending_tv.tv_sec = pending_ms / 1000; in wait_ms() 388 now.tv_sec = (long)(milliseconds / 1000); in tvnow() 407 now.tv_sec = tsnow.tv_sec; in tvnow() 420 now.tv_sec = time(NULL); in tvnow() 449 now.tv_sec = time(NULL); in tvnow() 458 timediff_t diff = newer.tv_sec-older.tv_sec; in timediff() 463 return (long)(newer.tv_sec-older.tv_sec)*1000+ in timediff()
|