/external/tcpdump/ |
D | timeval-operations.h | 41 #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/ |
D | s-c.c | 212 time_res.tv_usec = in main() 213 time_cour.tv_usec + 1000000 - time_zero.tv_usec; in main() 214 if (time_res.tv_usec < 1000000) { in main() 219 time_res.tv_usec -= 1000000; in main() 224 time_sav[4].tv_usec = time_sav[5].tv_usec; in main() 226 time_sav[5].tv_usec = time_sav[6].tv_usec; in main() 228 time_sav[6].tv_usec = time_sav[7].tv_usec; in main() 230 time_sav[7].tv_usec = time_res.tv_usec; in main() 233 time_sav[sav].tv_usec = time_res.tv_usec; in main() 237 output("%4i.%06i;\n", time_res.tv_sec, time_res.tv_usec); in main() [all …]
|
/external/strace/tests/ |
D | xetitimer.c | 61 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 …]
|
D | xselect.c | 71 tv->tv_usec = 0xfacefeedU; in main() 79 zero_extend_signed_to_ull(tv->tv_usec), sprintrc(rc)); in main() 86 zero_extend_signed_to_ull(tv_in.tv_usec), in main() 88 zero_extend_signed_to_ull(tv->tv_usec)); in main() 94 tv->tv_usec = (long) 0xbadc0dedfacefeedLL; in main() 102 zero_extend_signed_to_ull(tv->tv_usec), sprintrc(rc)); in main() 109 zero_extend_signed_to_ull(tv_in.tv_usec), in main() 111 zero_extend_signed_to_ull(tv->tv_usec)); in main() 122 tv->tv_usec = 0xc0de2; in main() 129 zero_extend_signed_to_ull(tv_in.tv_usec), in main() [all …]
|
D | xettimeofday.c | 47 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 = (long) 0xbadc0dedfacefeedLL; in main() 81 zero_extend_signed_to_ull(tv->tv_usec), in main()
|
/external/strace/tests-mx32/ |
D | xetitimer.c | 61 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 …]
|
D | xselect.c | 71 tv->tv_usec = 0xfacefeedU; in main() 79 zero_extend_signed_to_ull(tv->tv_usec), sprintrc(rc)); in main() 86 zero_extend_signed_to_ull(tv_in.tv_usec), in main() 88 zero_extend_signed_to_ull(tv->tv_usec)); in main() 94 tv->tv_usec = (long) 0xbadc0dedfacefeedLL; in main() 102 zero_extend_signed_to_ull(tv->tv_usec), sprintrc(rc)); in main() 109 zero_extend_signed_to_ull(tv_in.tv_usec), in main() 111 zero_extend_signed_to_ull(tv->tv_usec)); in main() 122 tv->tv_usec = 0xc0de2; in main() 129 zero_extend_signed_to_ull(tv_in.tv_usec), in main() [all …]
|
D | xettimeofday.c | 47 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 = (long) 0xbadc0dedfacefeedLL; in main() 81 zero_extend_signed_to_ull(tv->tv_usec), in main()
|
/external/strace/tests-m32/ |
D | xetitimer.c | 61 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 …]
|
D | xselect.c | 71 tv->tv_usec = 0xfacefeedU; in main() 79 zero_extend_signed_to_ull(tv->tv_usec), sprintrc(rc)); in main() 86 zero_extend_signed_to_ull(tv_in.tv_usec), in main() 88 zero_extend_signed_to_ull(tv->tv_usec)); in main() 94 tv->tv_usec = (long) 0xbadc0dedfacefeedLL; in main() 102 zero_extend_signed_to_ull(tv->tv_usec), sprintrc(rc)); in main() 109 zero_extend_signed_to_ull(tv_in.tv_usec), in main() 111 zero_extend_signed_to_ull(tv->tv_usec)); in main() 122 tv->tv_usec = 0xc0de2; in main() 129 zero_extend_signed_to_ull(tv_in.tv_usec), in main() [all …]
|
D | xettimeofday.c | 47 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 = (long) 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/ |
D | s-c.c | 213 time_res.tv_usec = in main() 214 time_cour.tv_usec + 1000000 - time_zero.tv_usec; in main() 215 if (time_res.tv_usec < 1000000) { in main() 220 time_res.tv_usec -= 1000000; in main() 225 time_sav[4].tv_usec = time_sav[5].tv_usec; in main() 227 time_sav[5].tv_usec = time_sav[6].tv_usec; in main() 229 time_sav[6].tv_usec = time_sav[7].tv_usec; in main() 231 time_sav[7].tv_usec = time_res.tv_usec; in main() 234 time_sav[sav].tv_usec = time_res.tv_usec; in main() 271 time_sav[0].tv_usec); in main() [all …]
|
/external/boringssl/src/ssl/ |
D | d1_lib.cc | 122 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() 144 if (ssl->d1->next_timeout.tv_sec == 0 && ssl->d1->next_timeout.tv_usec == 0) { in DTLSv1_get_timeout() 154 ssl->d1->next_timeout.tv_usec <= timenow.tv_usec)) { in DTLSv1_get_timeout() 163 if (ret.tv_usec >= timenow.tv_usec) { in DTLSv1_get_timeout() 164 ret.tv_usec -= timenow.tv_usec; in DTLSv1_get_timeout() 166 ret.tv_usec = 1000000 + ret.tv_usec - timenow.tv_usec; in DTLSv1_get_timeout() 172 if (ret.tv_sec == 0 && ret.tv_usec < 15000) { in DTLSv1_get_timeout() [all …]
|
/external/mesa3d/src/gallium/state_trackers/xvmc/tests/ |
D | testlib.c | 125 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/python/cpython2/Modules/ |
D | timing.h | 49 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/ |
D | rpc_clnt_control_dataint.c | 62 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/lib/ |
D | timeval.c | 39 now.tv_usec = (milliseconds % 1000) * 1000; in curlx_tvnow() 43 now.tv_usec = (long) (milliseconds % 1000) * 1000; in curlx_tvnow() 64 now.tv_usec = tsnow.tv_nsec / 1000; in curlx_tvnow() 77 now.tv_usec = 0; in curlx_tvnow() 106 now.tv_usec = 0; in curlx_tvnow() 129 (time_t)(newer.tv_usec-older.tv_usec)/1000; in curlx_tvdiff() 141 (double)(newer.tv_usec-older.tv_usec)/1000000.0; in curlx_tvdiff_secs() 143 return (double)(newer.tv_usec-older.tv_usec)/1000000.0; in curlx_tvdiff_secs()
|
/external/curl/src/ |
D | tool_util.c | 49 now.tv_usec = (milliseconds % 1000) * 1000; in tool_tvnow() 68 now.tv_usec = tsnow.tv_nsec / 1000; in tool_tvnow() 81 now.tv_usec = 0; in tool_tvnow() 110 now.tv_usec = 0; in tool_tvnow() 125 (newer.tv_usec-older.tv_usec)/1000; in tool_tvdiff() 137 (double)(newer.tv_usec-older.tv_usec)/1000000.0; in tool_tvdiff_secs() 139 return (double)(newer.tv_usec-older.tv_usec)/1000000.0; in tool_tvdiff_secs()
|
/external/curl/tests/libtest/ |
D | testutil.c | 39 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 (newer.tv_usec-older.tv_usec)/1000; in tutil_tvdiff() 127 (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/ |
D | 2-1.c | 87 time_diff.tv_usec = currsec2.tv_usec - currsec1.tv_usec; in main() 88 if (time_diff.tv_usec < 0) { in main() 90 time_diff.tv_usec += 1000000; in main() 98 (long)currsec1.tv_sec, (long)currsec1.tv_usec, in main() 99 (long)currsec2.tv_sec, (long)currsec2.tv_usec); in main() 126 currsec1.tv_usec = ts.tv_nsec / 1000; in f1() 132 timeout.tv_nsec = currsec1.tv_usec * 1000; in f1() 136 TIMEOUT, (long)currsec1.tv_sec, (long)currsec1.tv_usec); in f1() 151 currsec2.tv_usec = ts.tv_nsec / 1000; in f1()
|
D | 1-1.c | 84 time_diff.tv_usec = currsec2.tv_usec - currsec1.tv_usec; in main() 85 if (time_diff.tv_usec < 0) { in main() 87 time_diff.tv_usec += 1000000; in main() 95 (long)currsec1.tv_sec, (long)currsec1.tv_usec, in main() 96 (long)currsec2.tv_sec, (long)currsec2.tv_usec); in main() 119 timeout.tv_nsec = currsec1.tv_usec * 1000; in f1() 123 TIMEOUT, (long)currsec1.tv_sec, (long)currsec1.tv_usec); in f1()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedwrlock/ |
D | 3-1.c | 69 currsec1.tv_usec = ts.tv_nsec / 1000; in fn_wr() 75 timeout.tv_nsec = currsec1.tv_usec * 1000; in fn_wr() 103 currsec2.tv_usec = ts.tv_nsec / 1000; in fn_wr() 186 time_diff.tv_usec = currsec2.tv_usec - currsec1.tv_usec; in main() 187 if (time_diff.tv_usec < 0) { in main() 189 time_diff.tv_usec += 1000000; in main() 196 (long)time_diff.tv_usec); in main() 244 time_diff.tv_usec = currsec2.tv_usec - currsec1.tv_usec; in main() 245 if (time_diff.tv_usec < 0) { in main() 247 time_diff.tv_usec += 1000000; in main()
|
D | 1-1.c | 65 timeout.tv_nsec = currsec1.tv_usec * 1000; in fn_wr() 166 time_diff.tv_usec = currsec2.tv_usec - currsec1.tv_usec; in main() 167 if (time_diff.tv_usec < 0) { in main() 169 time_diff.tv_usec += 1000000; in main() 175 (long)time_diff.tv_usec); in main() 223 time_diff.tv_usec = currsec2.tv_usec - currsec1.tv_usec; in main() 224 if (time_diff.tv_usec < 0) { in main() 226 time_diff.tv_usec += 1000000; in main()
|
/external/ltp/utils/ffsb-6.0-rc2/ |
D | util.c | 138 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/conscrypt/libcore-stub/src/main/java/android/system/ |
D | StructTimeval.java | 32 public final long tv_usec; field in StructTimeval 34 private StructTimeval(long tv_sec, long tv_usec) { in StructTimeval() argument 36 this.tv_usec = tv_usec; in StructTimeval() 41 long tv_usec = (millis - (tv_sec * 1000)) * 1000; in fromMillis() local 42 return new StructTimeval(tv_sec, tv_usec); in fromMillis() 46 return (tv_sec * 1000) + (tv_usec / 1000); in toMillis()
|