Home
last modified time | relevance | path

Searched refs:tv_usec (Results 1 – 25 of 63) sorted by relevance

123

/curl/lib/
H A Dtimediff.c47 timediff_t tv_usec = (ms % 1000) * 1000; /* max=999999 */ in curlx_mstotv() local
55 tv->tv_usec = (suseconds_t)tv_usec; in curlx_mstotv()
63 tv->tv_usec = (long)tv_usec; in curlx_mstotv()
71 tv->tv_usec = (int)tv_usec; in curlx_mstotv()
76 tv->tv_usec = 0; in curlx_mstotv()
87 return (tv->tv_sec*1000) + (timediff_t)(((double)tv->tv_usec)/1000.0); in curlx_tvtoms()
H A Dtimeval.c55 now.tv_usec = (int)((milliseconds % 1000) * 1000); in Curl_now()
98 cnow.tv_usec = (int)(tsnow.tv_nsec / 1000); in Curl_now()
110 cnow.tv_usec = (int)(tsnow.tv_nsec / 1000); in Curl_now()
121 cnow.tv_usec = (int)now.tv_usec; in Curl_now()
126 cnow.tv_usec = 0; in Curl_now()
158 cnow.tv_usec = (int)(usecs % 1000000); in Curl_now()
176 ret.tv_usec = (int)now.tv_usec; in Curl_now()
189 now.tv_usec = 0; in Curl_now()
208 return diff * 1000 + (newer.tv_usec-older.tv_usec)/1000; in Curl_timediff()
222 return diff * 1000 + (newer.tv_usec - older.tv_usec + 999)/1000; in Curl_timediff_ceil()
[all …]
H A Dtimeval.h33 int tv_usec; /* microseconds */ member
/curl/tests/libtest/
H A Dtestutil.c41 now.tv_usec = (long)((milliseconds % 1000) * 1000); in tutil_tvnow()
60 now.tv_usec = (int)(tsnow.tv_nsec / 1000); in tutil_tvnow()
73 now.tv_usec = 0; in tutil_tvnow()
102 now.tv_usec = 0; in tutil_tvnow()
117 (long)(newer.tv_usec-older.tv_usec)/1000; in tutil_tvdiff()
129 (double)(newer.tv_usec-older.tv_usec)/1000000.0; in tutil_tvdiff_secs()
130 return (double)(newer.tv_usec-older.tv_usec)/1000000.0; in tutil_tvdiff_secs()
H A Dlib597.c106 interval.tv_usec = (itimeout%1000)*1000; in test()
110 interval.tv_usec = 0; in test()
H A Dlib582.c131 timeout->tv_usec += (int)timeout_ms * 1000; in curlTimerCallback()
174 timeout->tv_usec - now.tv_usec); in getMicroSecondTimeout()
312 tv.tv_usec = usTimeout % 1000000; in test()
316 tv.tv_usec = 100000; in test()
H A Dlib1531.c87 timeout.tv_usec = 0; in test()
94 timeout.tv_usec = 0; in test()
H A Dlib591.c124 interval.tv_usec = (itimeout%1000)*1000; in test()
128 interval.tv_usec = 100000L; /* 100 ms */ in test()
H A Dlib530.c163 timeout->tv_usec += (int)timeout_ms * 1000; in curlTimerCallback()
206 timeout->tv_usec - now.tv_usec); in getMicroSecondTimeout()
316 tv.tv_usec = usTimeout % 1000000; in testone()
320 tv.tv_usec = 100000; in testone()
H A Dlib1507.c104 timeout.tv_usec = 0; in test()
111 timeout.tv_usec = 0; in test()
H A Dlib502.c61 timeout.tv_usec = 100000L; /* 100 ms */ in test()
H A Dlib564.c64 interval.tv_usec = 0; in test()
H A Dlib560.c89 timeout.tv_usec = 0; in test()
H A Dlib503.c72 interval.tv_usec = 0; in test()
H A Dlib540.c153 T.tv_usec = (itimeout%1000)*1000; in loop()
157 T.tv_usec = 0; in loop()
H A Dlib533.c66 interval.tv_usec = 0; in test()
/curl/src/
H A Dtool_util.c45 now.tv_usec = (long)((count.QuadPart % tool_freq.QuadPart) * 1000000 / in tvnow()
60 now.tv_usec = (long)((milliseconds % 1000) * 1000); in tvnow()
80 now.tv_usec = (int)(tsnow.tv_nsec / 1000); in tvnow()
93 now.tv_usec = 0; in tvnow()
122 now.tv_usec = 0; in tvnow()
137 (long)(newer.tv_usec-older.tv_usec)/1000; in tvdiff()
H A Dtool_sleep.c56 timeout.tv_usec = (int)ms * 1000; in tool_go_sleep()
H A Dtool_filetime.c138 times[0].tv_usec = times[1].tv_usec = 0; in setfiletime()
/curl/tests/unit/
H A Dunit1309.c55 (long)t->key.tv_usec, i); in splayprint()
89 key.tv_usec = (541*i)%1023;
90 storage[i] = key.tv_usec;
119 key.tv_usec = (541*i)%1023;
123 storage[i * 3 + j] = key.tv_usec*10 + j;
132 tv_now.tv_usec = i;
H A Dunit1399.c52 data->progress.t_startsingle.tv_usec = fake_now.tv_usec; in fake_t_startsingle_time()
94 data.progress.start.tv_usec = now.tv_usec;
H A Dunit1323.c59 tests[i].first.tv_usec,
61 tests[i].second.tv_usec,
H A Dunit1303.c56 #define NOW(x,y) now.tv_sec = x; now.tv_usec = y
141 testdata->progress.t_startsingle.tv_usec = 0;
143 testdata->progress.t_startop.tv_usec = 0;
/curl/docs/examples/
H A Dmulti-legacy.c99 timeout.tv_usec = 0; in main()
107 timeout.tv_usec = (int)(curl_timeo % 1000) * 1000; in main()
/curl/tests/server/
H A Dutil.c112 (long)tv.tv_usec); in logmsg()
259 pending_tv.tv_usec = (pending_ms % 1000) * 1000; in wait_ms()
389 now.tv_usec = (long)((milliseconds % 1000) * 1000); in tvnow()
408 now.tv_usec = (int)(tsnow.tv_nsec / 1000); in tvnow()
421 now.tv_usec = 0; in tvnow()
450 now.tv_usec = 0; in tvnow()
464 (long)(newer.tv_usec-older.tv_usec)/1000; in timediff()

Completed in 44 milliseconds

123