Home
last modified time | relevance | path

Searched refs:tv_sec (Results 1 – 25 of 69) sorted by relevance

123

/curl/lib/
H A Dtimediff.c46 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 Dtimeval.c54 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 Dspeedcheck.c50 if(!data->state.keeps_speed.tv_sec) in Curl_speedcheck()
70 data->state.keeps_speed.tv_sec = 0; in Curl_speedcheck()
H A Dtimeval.h32 time_t tv_sec; /* seconds */ member
/curl/tests/libtest/
H A Dtestutil.c40 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 Dlib1531.c86 timeout.tv_sec = 1; in test()
92 if(timeout.tv_sec > 1) { in test()
93 timeout.tv_sec = 1; in test()
H A Dlib582.c134 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 Dlib1507.c103 timeout.tv_sec = 1; in test()
109 if(timeout.tv_sec > 1) { in test()
110 timeout.tv_sec = 1; in test()
H A Dlib530.c166 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 Dlib597.c105 interval.tv_sec = itimeout/1000; in test()
109 interval.tv_sec = TEST_HANG_TIMEOUT/1000 - 1; in test()
H A Dlib591.c123 interval.tv_sec = itimeout/1000; in test()
127 interval.tv_sec = 0; in test()
H A Dtesttrace.c106 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 Dtool_util.c44 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 Dtool_cb_dbg.c43 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 Dtool_sleep.c54 timeout.tv_sec = ms / 1000L; in tool_go_sleep()
H A Dtool_cb_rea.c73 timeout.tv_sec = wait/1000; in tool_read_cb()
135 if(prev.tv_sec) in tool_readbusy_cb()
H A Dtool_filetime.c137 times[0].tv_sec = times[1].tv_sec = (time_t)filetime; in setfiletime()
/curl/docs/examples/
H A Dmulti-legacy.c98 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 Dephiperfifo.c151 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 Dunit1399.c51 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 Dunit1323.c58 (long)tests[i].first.tv_sec,
60 (long)tests[i].second.tv_sec,
H A Dunit1606.c71 now.tv_sec = ++counter; in runawhile()
75 finaltime = (int)(now.tv_sec - 1); in runawhile()
H A Dunit1303.c56 #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 Dunit1309.c54 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 Dutil.c103 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()

Completed in 30 milliseconds

123