/external/ltrace/ |
D | summary.c | 62 if (tv.tv_usec >= start.tv_usec) { in calc_time_spent() 63 diff.tv_usec = tv.tv_usec - start.tv_usec; in calc_time_spent() 66 diff.tv_usec = 1000000 + tv.tv_usec - start.tv_usec; in calc_time_spent() 83 data->tot_usecs += st->tv.tv_usec; in fill_struct() 93 return en2->tv.tv_usec - en1->tv.tv_usec; in compar() 103 (int)entry->tv.tv_usec; in dump_one() 108 (int)entry->tv.tv_sec, (int)entry->tv.tv_usec, in dump_one() 192 if (st->tv.tv_usec + spent.tm.tv_usec > 1000000) { in summary_account_call() 193 st->tv.tv_usec += spent.tm.tv_usec - 1000000; in summary_account_call() 196 st->tv.tv_usec += spent.tm.tv_usec; in summary_account_call()
|
/external/mesa3d/src/gallium/state_trackers/xvmc/tests/ |
D | testlib.c | 124 if (x->tv_usec < y->tv_usec) in timeval_subtract() 126 int nsec = (y->tv_usec - x->tv_usec) / 1000000 + 1; in timeval_subtract() 127 y->tv_usec -= 1000000 * nsec; in timeval_subtract() 130 if (x->tv_usec - y->tv_usec > 1000000) in timeval_subtract() 132 int nsec = (x->tv_usec - y->tv_usec) / 1000000; in timeval_subtract() 133 y->tv_usec += 1000000 * nsec; in timeval_subtract() 142 result->tv_usec = x->tv_usec - y->tv_usec; in timeval_subtract()
|
/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() 121 (long)(newer.tv_usec-older.tv_usec)/1000; in curlx_tvdiff() 133 (double)(newer.tv_usec-older.tv_usec)/1000000.0; in curlx_tvdiff_secs() 135 return (double)(newer.tv_usec-older.tv_usec)/1000000.0; in curlx_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/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/avahi/avahi-common/ |
D | timeval.c | 40 if (a->tv_usec < b->tv_usec) in avahi_timeval_compare() 43 if (a->tv_usec > b->tv_usec) in avahi_timeval_compare() 56 return ((AvahiUsec) a->tv_sec - b->tv_sec)*1000000 + a->tv_usec - b->tv_usec; in avahi_timeval_diff() 63 u = usec + a->tv_usec; in avahi_timeval_add() 66 a->tv_usec = (long) (1000000 + (u % 1000000)); in avahi_timeval_add() 69 a->tv_usec = (long) (u % 1000000); in avahi_timeval_add()
|
/external/dbus/bus/ |
D | expirelist.c | 128 long tv_usec) in do_expiration_with_monotonic_time() argument 148 tv_sec, tv_usec); in do_expiration_with_monotonic_time() 195 long tv_sec, tv_usec; in bus_expirelist_expire() local 197 _dbus_get_monotonic_time (&tv_sec, &tv_usec); in bus_expirelist_expire() 199 next_interval = do_expiration_with_monotonic_time (list, tv_sec, tv_usec); in bus_expirelist_expire() 308 long *tv_usec, in time_add_milliseconds() argument 312 *tv_usec = *tv_usec + milliseconds * 1000; in time_add_milliseconds() 313 if (*tv_usec >= 1000000) in time_add_milliseconds() 315 *tv_usec -= 1000000; in time_add_milliseconds() 325 long tv_sec, tv_usec; in bus_expire_list_test() local [all …]
|
/external/toybox/toys/posix/ |
D | time.c | 39 if (tv.tv_usec > tv2.tv_usec) { in time_main() 40 tv2.tv_usec += 1000000; in time_main() 43 r = (tv2.tv_sec-tv.tv_sec)+((tv2.tv_usec-tv.tv_usec)/1000000.0); in time_main() 44 u = ru.ru_utime.tv_sec+(ru.ru_utime.tv_usec/1000000.0); in time_main() 45 s = ru.ru_stime.tv_sec+(ru.ru_stime.tv_usec/1000000.0); in time_main()
|
/external/c-ares/ |
D | ares__timeval.c | 31 now.tv_usec = (milliseconds % 1000) * 1000; in ares__tvnow() 50 now.tv_usec = tsnow.tv_nsec / 1000; in ares__tvnow() 63 now.tv_usec = 0; in ares__tvnow() 92 now.tv_usec = 0; in ares__tvnow() 108 (newer.tv_usec-older.tv_usec)/1000;
|
/external/strace/tests/ |
D | xetitimer.c | 55 (intmax_t) new.itv.it_interval.tv_usec, in main() 57 (intmax_t) new.itv.it_value.tv_usec, in main() 59 (intmax_t) old.itv.it_interval.tv_usec, in main() 61 (intmax_t) old.itv.it_value.tv_usec); in main() 69 (intmax_t) old.itv.it_interval.tv_usec, in main() 71 (intmax_t) old.itv.it_value.tv_usec); in main()
|
/external/libevent/include/event2/ |
D | util.h | 385 (vvp)->tv_usec = (tvp)->tv_usec + (uvp)->tv_usec; \ 386 if ((vvp)->tv_usec >= 1000000) { \ 388 (vvp)->tv_usec -= 1000000; \ 394 (vvp)->tv_usec = (tvp)->tv_usec - (uvp)->tv_usec; \ 395 if ((vvp)->tv_usec < 0) { \ 397 (vvp)->tv_usec += 1000000; \ 405 #define evutil_timerclear(tvp) (tvp)->tv_sec = (tvp)->tv_usec = 0 413 ((tvp)->tv_usec cmp (uvp)->tv_usec) : \ 419 #define evutil_timerisset(tvp) ((tvp)->tv_sec || (tvp)->tv_usec)
|
/external/autotest/client/bin/input/ |
D | input_event_player.py | 35 self.tv_usec = None 59 self.tv_usec = event.tv_usec 61 delta += ((event.tv_usec - self.tv_usec) / 1000000.0) 66 self.tv_usec = event.tv_usec
|
/external/opencv3/3rdparty/libjasper/ |
D | jas_tmr.c | 102 t0 = ((double) tmr->start.tv_sec) + ((double) tmr->start.tv_usec) / 1e6; in jas_tmr_get() 103 t1 = ((double) tmr->stop.tv_sec) + ((double) tmr->stop.tv_usec) / 1e6; in jas_tmr_get() 126 t = ((tmr->stop.ru_utime.tv_sec * 1e6 + tmr->stop.ru_utime.tv_usec) - in jas_tmr_get() 127 (tmr->start.ru_utime.tv_sec * 1e6 + tmr->start.ru_utime.tv_usec)) / 1e6; in jas_tmr_get() 128 t += ((tmr->stop.ru_stime.tv_sec * 1e6 + tmr->stop.ru_stime.tv_usec) - in jas_tmr_get() 129 (tmr->start.ru_stime.tv_sec * 1e6 + tmr->start.ru_stime.tv_usec)) / 1e6; in jas_tmr_get()
|
/external/boringssl/src/ssl/ |
D | d1_lib.c | 163 if (ssl->d1->next_timeout.tv_sec == 0 && ssl->d1->next_timeout.tv_usec == 0) { in dtls1_start_timer() 182 if (ssl->d1->next_timeout.tv_sec == 0 && ssl->d1->next_timeout.tv_usec == 0) { in DTLSv1_get_timeout() 193 ssl->d1->next_timeout.tv_usec <= timenow.tv_usec)) { in DTLSv1_get_timeout() 201 out->tv_usec -= timenow.tv_usec; in DTLSv1_get_timeout() 202 if (out->tv_usec < 0) { in DTLSv1_get_timeout() 204 out->tv_usec += 1000000; in DTLSv1_get_timeout() 209 if (out->tv_sec == 0 && out->tv_usec < 15000) { in DTLSv1_get_timeout() 225 if (timeleft.tv_sec > 0 || timeleft.tv_usec > 0) { in dtls1_is_timer_expired() 304 out_clock->tv_usec = time.millitm * 1000; in get_current_time()
|
/external/libvpx/libvpx/vpx_ports/ |
D | vpx_timer.h | 40 (result)->tv_usec = (a)->tv_usec - (b)->tv_usec; \ 41 if ((result)->tv_usec < 0) { \ 43 (result)->tv_usec += 1000000; \ 92 return diff.tv_sec * 1000000 + diff.tv_usec; in vpx_usec_timer_elapsed()
|
/external/e2fsprogs/lib/uuid/ |
D | gen_uuid.c | 128 tv->tv_usec = n % 1000000; in gettimeofday() 155 srand((getpid() << 16) ^ getuid() ^ tv.tv_sec ^ tv.tv_usec); in get_random_fd() 158 jrand_seed[1] = getppid() ^ (tv.tv_usec & 0xFFFF); in get_random_fd() 159 jrand_seed[2] = (tv.tv_sec ^ tv.tv_usec) >> 16; in get_random_fd() 164 for (i = (tv.tv_sec ^ tv.tv_usec) & 0x1F; i > 0; i--) in get_random_fd() 359 last.tv_usec = tv2; in get_clock() 364 if ((last.tv_sec == 0) && (last.tv_usec == 0)) { in get_clock() 375 (tv.tv_usec < last.tv_usec))) { in get_clock() 380 (tv.tv_usec == last.tv_usec)) { in get_clock() 389 clock_reg = tv.tv_usec*10 + adjustment; in get_clock() [all …]
|
/external/ipsec-tools/src/racoon/ |
D | misc.c | 165 if (t2->tv_usec >= t1->tv_usec) 167 (double)(t2->tv_usec - t1->tv_usec) / 1000000; 170 (double)(1000000 + t2->tv_usec - t1->tv_usec) / 1000000;
|
/external/tremolo/Tremolo/ |
D | misc.c | 115 if(start_time==-1)start_time=(tv.tv_sec*1000)+(tv.tv_usec/1000); in _insert() 121 fprintf(out,"%ld, %ld\n",-start_time+(tv.tv_sec*1000)+(tv.tv_usec/1000), in _insert() 124 -start_time+(tv.tv_sec*1000)+(tv.tv_usec/1000), in _insert() 129 fprintf(out,"%ld, %ld\n",-start_time+(tv.tv_sec*1000)+(tv.tv_usec/1000), in _insert() 131 fprintf(out,"%ld, %ld\n",-start_time+(tv.tv_sec*1000)+(tv.tv_usec/1000), in _insert() 156 fprintf(out,"%ld, %ld\n",-start_time+(tv.tv_sec*1000)+(tv.tv_usec/1000), in _ripremove() 158 fprintf(out,"%ld, %ld\n",-start_time+(tv.tv_sec*1000)+(tv.tv_usec/1000), in _ripremove() 169 fprintf(out,"%ld, %ld\n",-start_time+(tv.tv_sec*1000)+(tv.tv_usec/1000), in _ripremove() 171 fprintf(out,"%ld, %ld\n",-start_time+(tv.tv_sec*1000)+(tv.tv_usec/1000), in _ripremove()
|
/external/libmicrohttpd/src/examples/ |
D | benchmark_https.c | 78 if (tve.tv_usec >= tv->tv_usec) in completed_callback() 80 + (tve.tv_usec - tv->tv_usec); in completed_callback() 83 - tv->tv_usec + tve.tv_usec; in completed_callback()
|
D | benchmark.c | 78 if (tve.tv_usec >= tv->tv_usec) in completed_callback() 80 + (tve.tv_usec - tv->tv_usec); in completed_callback() 83 - tv->tv_usec + tve.tv_usec; in completed_callback()
|
/external/strace/ |
D | util.c | 64 return a->tv_sec || a->tv_usec; in tv_nz() 71 || (a->tv_sec == b->tv_sec && a->tv_usec < b->tv_usec)) in tv_cmp() 74 || (a->tv_sec == b->tv_sec && a->tv_usec > b->tv_usec)) in tv_cmp() 82 return tv->tv_sec + tv->tv_usec/1000000.0; in tv_float() 89 tv->tv_usec = a->tv_usec + b->tv_usec; in tv_add() 90 if (tv->tv_usec >= 1000000) { in tv_add() 92 tv->tv_usec -= 1000000; in tv_add() 100 tv->tv_usec = a->tv_usec - b->tv_usec; in tv_sub() 101 if (((long) tv->tv_usec) < 0) { in tv_sub() 103 tv->tv_usec += 1000000; in tv_sub() [all …]
|
D | printrusage.c | 48 (long) ru.ru_utime.tv_sec, (long) ru.ru_utime.tv_usec, in MPERS_PRINTER_DECL() 49 (long) ru.ru_stime.tv_sec, (long) ru.ru_stime.tv_usec); in MPERS_PRINTER_DECL() 76 unsigned tv_usec; in printrusage32() member 101 (long) ru.ru_utime.tv_sec, (long) ru.ru_utime.tv_usec, in printrusage32() 102 (long) ru.ru_stime.tv_sec, (long) ru.ru_stime.tv_usec); in printrusage32()
|
/external/curl/docs/examples/ |
D | pop3-multi.c | 40 now.tv_usec = 0; in tvnow() 48 (newer.tv_usec - older.tv_usec) / 1000; in tvdiff() 102 timeout.tv_usec = 0; in main() 110 timeout.tv_usec = (curl_timeo % 1000) * 1000; in main()
|
D | imap-multi.c | 40 now.tv_usec = 0; in tvnow() 48 (newer.tv_usec - older.tv_usec) / 1000; in tvdiff() 102 timeout.tv_usec = 0; in main() 110 timeout.tv_usec = (curl_timeo % 1000) * 1000; in main()
|
/external/libweave/third_party/chromium/base/time/ |
D | time_posix.cc | 144 return Time((tv.tv_sec * kMicrosecondsPerSecond + tv.tv_usec) + in Now() 314 DCHECK_LT(t.tv_usec, static_cast<int>(Time::kMicrosecondsPerSecond)); in FromTimeVal() 315 DCHECK_GE(t.tv_usec, 0); in FromTimeVal() 316 if (t.tv_usec == 0 && t.tv_sec == 0) in FromTimeVal() 318 if (t.tv_usec == static_cast<suseconds_t>(Time::kMicrosecondsPerSecond) - 1 && in FromTimeVal() 322 t.tv_usec + kTimeTToMicrosecondsOffset); in FromTimeVal() 329 result.tv_usec = 0; in ToTimeVal() 334 result.tv_usec = static_cast<suseconds_t>(Time::kMicrosecondsPerSecond) - 1; in ToTimeVal() 339 result.tv_usec = us % Time::kMicrosecondsPerSecond; in ToTimeVal()
|