Home
last modified time | relevance | path

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

12345678910>>...35

/external/tcpdump/
Dtimeval-operations.h41 #define netdissect_timevalclear(tvp) ((tvp)->tv_sec = (tvp)->tv_usec = 0)
43 #define netdissect_timevalisset(tvp) ((tvp)->tv_sec || (tvp)->tv_usec)
47 ((tvp)->tv_usec cmp (uvp)->tv_usec) : \
53 (vvp)->tv_usec = (tvp)->tv_usec + (uvp)->tv_usec; \
55 if ((vvp)->tv_usec >= _NANO_PER_SEC) { \
57 (vvp)->tv_usec -= _NANO_PER_SEC; \
60 if ((vvp)->tv_usec >= _MICRO_PER_SEC) { \
62 (vvp)->tv_usec -= _MICRO_PER_SEC; \
70 (vvp)->tv_usec = (tvp)->tv_usec - (uvp)->tv_usec; \
71 if ((vvp)->tv_usec < 0) { \
[all …]
/external/ltp/testcases/open_posix_testsuite/stress/threads/pthread_mutex_init/
Ds-c.c205 time_res.tv_usec = in main()
206 time_cour.tv_usec + 1000000 - time_zero.tv_usec; in main()
207 if (time_res.tv_usec < 1000000) { in main()
212 time_res.tv_usec -= 1000000; in main()
217 time_sav[4].tv_usec = time_sav[5].tv_usec; in main()
219 time_sav[5].tv_usec = time_sav[6].tv_usec; in main()
221 time_sav[6].tv_usec = time_sav[7].tv_usec; in main()
223 time_sav[7].tv_usec = time_res.tv_usec; in main()
226 time_sav[sav].tv_usec = time_res.tv_usec; in main()
230 output("%4i.%06i;\n", time_res.tv_sec, time_res.tv_usec); in main()
[all …]
/external/strace/tests/
Dxetitimer.c61 zero_extend_signed_to_ull(new.it_interval.tv_usec), in main()
63 zero_extend_signed_to_ull(new.it_value.tv_usec)); in main()
72 zero_extend_signed_to_ull(p_old->it_interval.tv_usec), in main()
74 zero_extend_signed_to_ull(p_old->it_value.tv_usec)); in main()
84 zero_extend_signed_to_ull(new.it_interval.tv_usec), in main()
86 zero_extend_signed_to_ull(new.it_value.tv_usec), in main()
88 zero_extend_signed_to_ull(p_old->it_interval.tv_usec), in main()
90 zero_extend_signed_to_ull(p_old->it_value.tv_usec)); in main()
100 zero_extend_signed_to_ull(new.it_interval.tv_usec), in main()
102 zero_extend_signed_to_ull(new.it_value.tv_usec), in main()
[all …]
Dxselect.c129 zero_extend_signed_to_ull(tv_in.tv_usec)); in main()
169 tv_in.tv_usec = 0xfacefeedU; in main()
179 zero_extend_signed_to_ull(tv_in.tv_usec), in main()
190 zero_extend_signed_to_ull(tv_in.tv_usec), in main()
192 zero_extend_signed_to_ull(tv->tv_usec)); in main()
201 tv_in.tv_usec = (suseconds_t) 0xbadc0dedfacefeedLL; in main()
211 zero_extend_signed_to_ull(tv_in.tv_usec), in main()
222 zero_extend_signed_to_ull(tv_in.tv_usec), in main()
224 zero_extend_signed_to_ull(tv->tv_usec)); in main()
237 tv_in.tv_usec = 0xc0de2; in main()
[all …]
/external/strace/tests-m32/
Dxetitimer.c61 zero_extend_signed_to_ull(new.it_interval.tv_usec), in main()
63 zero_extend_signed_to_ull(new.it_value.tv_usec)); in main()
72 zero_extend_signed_to_ull(p_old->it_interval.tv_usec), in main()
74 zero_extend_signed_to_ull(p_old->it_value.tv_usec)); in main()
84 zero_extend_signed_to_ull(new.it_interval.tv_usec), in main()
86 zero_extend_signed_to_ull(new.it_value.tv_usec), in main()
88 zero_extend_signed_to_ull(p_old->it_interval.tv_usec), in main()
90 zero_extend_signed_to_ull(p_old->it_value.tv_usec)); in main()
100 zero_extend_signed_to_ull(new.it_interval.tv_usec), in main()
102 zero_extend_signed_to_ull(new.it_value.tv_usec), in main()
[all …]
Dxselect.c129 zero_extend_signed_to_ull(tv_in.tv_usec)); in main()
169 tv_in.tv_usec = 0xfacefeedU; in main()
179 zero_extend_signed_to_ull(tv_in.tv_usec), in main()
190 zero_extend_signed_to_ull(tv_in.tv_usec), in main()
192 zero_extend_signed_to_ull(tv->tv_usec)); in main()
201 tv_in.tv_usec = (suseconds_t) 0xbadc0dedfacefeedLL; in main()
211 zero_extend_signed_to_ull(tv_in.tv_usec), in main()
222 zero_extend_signed_to_ull(tv_in.tv_usec), in main()
224 zero_extend_signed_to_ull(tv->tv_usec)); in main()
237 tv_in.tv_usec = 0xc0de2; in main()
[all …]
Dxettimeofday.c47 zero_extend_signed_to_ull(tv->tv_usec)); in main()
54 zero_extend_signed_to_ull(tv->tv_usec), in main()
58 tv->tv_usec = 1000000; in main()
63 zero_extend_signed_to_ull(tv->tv_usec), in main()
67 tv->tv_usec = 0xfacefeedU; in main()
72 zero_extend_signed_to_ull(tv->tv_usec), in main()
76 tv->tv_usec = (suseconds_t) 0xbadc0dedfacefeedLL; in main()
81 zero_extend_signed_to_ull(tv->tv_usec), in main()
/external/strace/tests-mx32/
Dxetitimer.c61 zero_extend_signed_to_ull(new.it_interval.tv_usec), in main()
63 zero_extend_signed_to_ull(new.it_value.tv_usec)); in main()
72 zero_extend_signed_to_ull(p_old->it_interval.tv_usec), in main()
74 zero_extend_signed_to_ull(p_old->it_value.tv_usec)); in main()
84 zero_extend_signed_to_ull(new.it_interval.tv_usec), in main()
86 zero_extend_signed_to_ull(new.it_value.tv_usec), in main()
88 zero_extend_signed_to_ull(p_old->it_interval.tv_usec), in main()
90 zero_extend_signed_to_ull(p_old->it_value.tv_usec)); in main()
100 zero_extend_signed_to_ull(new.it_interval.tv_usec), in main()
102 zero_extend_signed_to_ull(new.it_value.tv_usec), in main()
[all …]
Dxselect.c129 zero_extend_signed_to_ull(tv_in.tv_usec)); in main()
169 tv_in.tv_usec = 0xfacefeedU; in main()
179 zero_extend_signed_to_ull(tv_in.tv_usec), in main()
190 zero_extend_signed_to_ull(tv_in.tv_usec), in main()
192 zero_extend_signed_to_ull(tv->tv_usec)); in main()
201 tv_in.tv_usec = (suseconds_t) 0xbadc0dedfacefeedLL; in main()
211 zero_extend_signed_to_ull(tv_in.tv_usec), in main()
222 zero_extend_signed_to_ull(tv_in.tv_usec), in main()
224 zero_extend_signed_to_ull(tv->tv_usec)); in main()
237 tv_in.tv_usec = 0xc0de2; in main()
[all …]
Dxettimeofday.c47 zero_extend_signed_to_ull(tv->tv_usec)); in main()
54 zero_extend_signed_to_ull(tv->tv_usec), in main()
58 tv->tv_usec = 1000000; in main()
63 zero_extend_signed_to_ull(tv->tv_usec), in main()
67 tv->tv_usec = 0xfacefeedU; in main()
72 zero_extend_signed_to_ull(tv->tv_usec), in main()
76 tv->tv_usec = (suseconds_t) 0xbadc0dedfacefeedLL; in main()
81 zero_extend_signed_to_ull(tv->tv_usec), in main()
/external/ltp/testcases/open_posix_testsuite/stress/threads/pthread_cond_init/
Ds-c.c206 time_res.tv_usec = in main()
207 time_cour.tv_usec + 1000000 - time_zero.tv_usec; in main()
208 if (time_res.tv_usec < 1000000) { in main()
213 time_res.tv_usec -= 1000000; in main()
218 time_sav[4].tv_usec = time_sav[5].tv_usec; in main()
220 time_sav[5].tv_usec = time_sav[6].tv_usec; in main()
222 time_sav[6].tv_usec = time_sav[7].tv_usec; in main()
224 time_sav[7].tv_usec = time_res.tv_usec; in main()
227 time_sav[sav].tv_usec = time_res.tv_usec; in main()
264 time_sav[0].tv_usec); in main()
[all …]
/external/boringssl/src/ssl/
Dd1_lib.cc122 if (ssl->d1->next_timeout.tv_sec == 0 && ssl->d1->next_timeout.tv_usec == 0) { in dtls1_start_timer()
131 ssl->d1->next_timeout.tv_usec += (ssl->d1->timeout_duration_ms % 1000) * 1000; in dtls1_start_timer()
132 if (ssl->d1->next_timeout.tv_usec >= 1000000) { in dtls1_start_timer()
134 ssl->d1->next_timeout.tv_usec -= 1000000; in dtls1_start_timer()
147 if (timeleft.tv_sec > 0 || timeleft.tv_usec > 0) { in dtls1_is_timer_expired()
204 if (ssl->d1->next_timeout.tv_sec == 0 && ssl->d1->next_timeout.tv_usec == 0) { in DTLSv1_get_timeout()
214 ssl->d1->next_timeout.tv_usec <= timenow.tv_usec)) { in DTLSv1_get_timeout()
223 if (ret.tv_usec >= timenow.tv_usec) { in DTLSv1_get_timeout()
224 ret.tv_usec -= timenow.tv_usec; in DTLSv1_get_timeout()
226 ret.tv_usec = 1000000 + ret.tv_usec - timenow.tv_usec; in DTLSv1_get_timeout()
[all …]
/external/mesa3d/src/gallium/state_trackers/xvmc/tests/
Dtestlib.c125 if (x->tv_usec < y->tv_usec) in timeval_subtract()
127 int nsec = (y->tv_usec - x->tv_usec) / 1000000 + 1; in timeval_subtract()
128 y->tv_usec -= 1000000 * nsec; in timeval_subtract()
131 if (x->tv_usec - y->tv_usec > 1000000) in timeval_subtract()
133 int nsec = (x->tv_usec - y->tv_usec) / 1000000; in timeval_subtract()
134 y->tv_usec += 1000000 * nsec; in timeval_subtract()
143 result->tv_usec = x->tv_usec - y->tv_usec; in timeval_subtract()
/external/curl/lib/
Dtimeval.c38 now.tv_usec = (int)((count.QuadPart % Curl_freq.QuadPart) * 1000000 / in Curl_now()
53 now.tv_usec = (milliseconds % 1000) * 1000; in Curl_now()
90 cnow.tv_usec = (unsigned int)(tsnow.tv_nsec / 1000); in Curl_now()
101 cnow.tv_usec = (unsigned int)now.tv_usec; in Curl_now()
106 cnow.tv_usec = 0; in Curl_now()
138 cnow.tv_usec = (int)(usecs % 1000000); in Curl_now()
156 ret.tv_usec = (int)now.tv_usec; in Curl_now()
169 now.tv_usec = 0; in Curl_now()
196 return diff * 1000 + (newer.tv_usec-older.tv_usec)/1000; in Curl_timediff()
210 return diff * 1000000 + newer.tv_usec-older.tv_usec; in Curl_timediff_us()
/external/python/cpython2/Modules/
Dtiming.h49 if(beforetp.tv_usec > aftertp.tv_usec) \
51 aftertp.tv_usec += 1000000; \
56 (aftertp.tv_usec - beforetp.tv_usec))
59 ((aftertp.tv_usec - beforetp.tv_usec) / 1000))
62 (aftertp.tv_usec - beforetp.tv_usec) / 1000000)
/external/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_stdcall_clnt_control/
Drpc_clnt_control_dataint.c62 tvSet.tv_usec = 2000; in main()
67 if ((tvSet.tv_sec != tvGet.tv_sec) || (tvSet.tv_usec != tvGet.tv_usec)) in main()
72 (long)tvSet.tv_sec, (long)tvSet.tv_usec); in main()
74 (long)tvGet.tv_sec, (long)tvGet.tv_usec); in main()
78 tvSet.tv_usec = 8000; in main()
83 if ((tvSet.tv_sec != tvGet.tv_sec) || (tvSet.tv_usec != tvGet.tv_usec)) in main()
88 (long)tvSet.tv_sec, (long)tvSet.tv_usec); in main()
90 (long)tvGet.tv_sec, (long)tvGet.tv_usec); in main()
/external/curl/tests/libtest/
Dtestutil.c39 now.tv_usec = (milliseconds % 1000) * 1000; in tutil_tvnow()
58 now.tv_usec = tsnow.tv_nsec / 1000; in tutil_tvnow()
71 now.tv_usec = 0; in tutil_tvnow()
100 now.tv_usec = 0; in tutil_tvnow()
115 (long)(newer.tv_usec-older.tv_usec)/1000; in tutil_tvdiff()
128 (double)(newer.tv_usec-older.tv_usec)/1000000.0; in tutil_tvdiff_secs()
129 return (double)(newer.tv_usec-older.tv_usec)/1000000.0; in tutil_tvdiff_secs()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_timedlock/
D2-1.c86 time_diff.tv_usec = currsec2.tv_usec - currsec1.tv_usec; in main()
87 if (time_diff.tv_usec < 0) { in main()
89 time_diff.tv_usec += 1000000; in main()
97 (long)currsec1.tv_sec, (long)currsec1.tv_usec, in main()
98 (long)currsec2.tv_sec, (long)currsec2.tv_usec); in main()
125 currsec1.tv_usec = ts.tv_nsec / 1000; in f1()
131 timeout.tv_nsec = currsec1.tv_usec * 1000; in f1()
135 TIMEOUT, (long)currsec1.tv_sec, (long)currsec1.tv_usec); in f1()
150 currsec2.tv_usec = ts.tv_nsec / 1000; in f1()
D1-1.c83 time_diff.tv_usec = currsec2.tv_usec - currsec1.tv_usec; in main()
84 if (time_diff.tv_usec < 0) { in main()
86 time_diff.tv_usec += 1000000; in main()
94 (long)currsec1.tv_sec, (long)currsec1.tv_usec, in main()
95 (long)currsec2.tv_sec, (long)currsec2.tv_usec); in main()
118 timeout.tv_nsec = currsec1.tv_usec * 1000; in f1()
122 TIMEOUT, (long)currsec1.tv_sec, (long)currsec1.tv_usec); in f1()
/external/ltp/utils/ffsb-6.0-rc2/
Dutil.c138 tdiff.tv_usec = t1.tv_usec - t0.tv_usec; in tvsub()
139 if (tdiff.tv_usec < 0) in tvsub()
140 tdiff.tv_sec--, tdiff.tv_usec += 1000000; in tvsub()
148 tdiff.tv_usec = t1.tv_usec + t0.tv_usec; in tvadd()
149 if (tdiff.tv_usec > 1000000) in tvadd()
150 tdiff.tv_sec++, tdiff.tv_usec -= 1000000; in tvadd()
156 return ((double)t->tv_sec * (1000000.0f) + (double)t->tv_usec) / in tvtodouble()
168 (((double)rusage.ru_utime.tv_usec) / 1000000.0) + in cpu_so_far()
170 (((double)rusage.ru_stime.tv_usec) / 1000000.0); in cpu_so_far()
181 (((double)rusage.ru_utime.tv_usec) / 1000000.0) + in cpu_so_far_children()
[all …]
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedwrlock/
D3-1.c68 currsec1.tv_usec = ts.tv_nsec / 1000; in fn_wr()
74 timeout.tv_nsec = currsec1.tv_usec * 1000; in fn_wr()
102 currsec2.tv_usec = ts.tv_nsec / 1000; in fn_wr()
185 time_diff.tv_usec = currsec2.tv_usec - currsec1.tv_usec; in main()
186 if (time_diff.tv_usec < 0) { in main()
188 time_diff.tv_usec += 1000000; in main()
195 (long)time_diff.tv_usec); in main()
243 time_diff.tv_usec = currsec2.tv_usec - currsec1.tv_usec; in main()
244 if (time_diff.tv_usec < 0) { in main()
246 time_diff.tv_usec += 1000000; in main()
D1-1.c64 timeout.tv_nsec = currsec1.tv_usec * 1000; in fn_wr()
165 time_diff.tv_usec = currsec2.tv_usec - currsec1.tv_usec; in main()
166 if (time_diff.tv_usec < 0) { in main()
168 time_diff.tv_usec += 1000000; in main()
174 (long)time_diff.tv_usec); in main()
222 time_diff.tv_usec = currsec2.tv_usec - currsec1.tv_usec; in main()
223 if (time_diff.tv_usec < 0) { in main()
225 time_diff.tv_usec += 1000000; in main()
/external/conscrypt/libcore-stub/src/main/java/android/system/
DStructTimeval.java30 public final long tv_usec; field in StructTimeval
32 private StructTimeval(long tv_sec, long tv_usec) { in StructTimeval() argument
34 this.tv_usec = tv_usec; in StructTimeval()
39 long tv_usec = (millis - (tv_sec * 1000)) * 1000; in fromMillis() local
40 return new StructTimeval(tv_sec, tv_usec); in fromMillis()
44 return (tv_sec * 1000) + (tv_usec / 1000); in toMillis()
/external/ltp/testcases/kernel/syscalls/getrusage/
Dgetrusage04.c108 usage.ru_utime.tv_usec, usage.ru_stime.tv_usec); in main()
109 ulast = usage.ru_utime.tv_usec; in main()
110 slast = usage.ru_stime.tv_usec; in main()
114 udelta = usage.ru_utime.tv_usec - ulast; in main()
115 sdelta = usage.ru_stime.tv_usec - slast; in main()
119 usage.ru_utime.tv_usec, in main()
120 usage.ru_stime.tv_usec); in main()
136 ulast = usage.ru_utime.tv_usec; in main()
137 slast = usage.ru_stime.tv_usec; in main()
/external/ltp/include/
Dtst_timer.h63 return t.tv_sec * 1000000 + t.tv_usec; in tst_timeval_to_us()
71 return t.tv_sec * 1000 + (t.tv_usec + 500) / 1000; in tst_timeval_to_ms()
82 ret.tv_usec = (ms % 1000) * 1000; in tst_ms_to_timeval()
95 ret.tv_usec = us % 1000000; in tst_us_to_timeval()
202 if (t1.tv_usec < t2.tv_usec) { in tst_timeval_diff()
204 res.tv_usec = 1000000 - (t2.tv_usec - t1.tv_usec); in tst_timeval_diff()
206 res.tv_usec = t1.tv_usec - t2.tv_usec; in tst_timeval_diff()

12345678910>>...35