/external/chromium/third_party/libevent/compat/sys/ |
D | _time.h | 46 long tv_usec; /* and microseconds */ member 59 (ts)->tv_nsec = (tv)->tv_usec * 1000; \ 63 (tv)->tv_usec = (ts)->tv_nsec / 1000; \ 79 #define timerclear(tvp) (tvp)->tv_sec = (tvp)->tv_usec = 0 80 #define timerisset(tvp) ((tvp)->tv_sec || (tvp)->tv_usec) 83 ((tvp)->tv_usec cmp (uvp)->tv_usec) : \ 88 (vvp)->tv_usec = (tvp)->tv_usec + (uvp)->tv_usec; \ 89 if ((vvp)->tv_usec >= 1000000) { \ 91 (vvp)->tv_usec -= 1000000; \ 97 (vvp)->tv_usec = (tvp)->tv_usec - (uvp)->tv_usec; \ [all …]
|
D | _libevent_time.h | 46 long tv_usec; /* and microseconds */ member 59 (ts)->tv_nsec = (tv)->tv_usec * 1000; \ 63 (tv)->tv_usec = (ts)->tv_nsec / 1000; \ 79 #define timerclear(tvp) (tvp)->tv_sec = (tvp)->tv_usec = 0 80 #define timerisset(tvp) ((tvp)->tv_sec || (tvp)->tv_usec) 83 ((tvp)->tv_usec cmp (uvp)->tv_usec) : \ 88 (vvp)->tv_usec = (tvp)->tv_usec + (uvp)->tv_usec; \ 89 if ((vvp)->tv_usec >= 1000000) { \ 91 (vvp)->tv_usec -= 1000000; \ 97 (vvp)->tv_usec = (tvp)->tv_usec - (uvp)->tv_usec; \ [all …]
|
/external/chromium/third_party/libevent/ |
D | evutil.h | 129 (vvp)->tv_usec = (tvp)->tv_usec + (uvp)->tv_usec; \ 130 if ((vvp)->tv_usec >= 1000000) { \ 132 (vvp)->tv_usec -= 1000000; \ 138 (vvp)->tv_usec = (tvp)->tv_usec - (uvp)->tv_usec; \ 139 if ((vvp)->tv_usec < 0) { \ 141 (vvp)->tv_usec += 1000000; \ 149 #define evutil_timerclear(tvp) (tvp)->tv_sec = (tvp)->tv_usec = 0 154 ((tvp)->tv_usec cmp (uvp)->tv_usec) : \ 160 #define evutil_timerisset(tvp) ((tvp)->tv_sec || (tvp)->tv_usec)
|
/external/dbus/bus/ |
D | expirelist.c | 139 long tv_usec) in do_expiration_with_current_time() argument 159 tv_sec, tv_usec); in do_expiration_with_current_time() 206 long tv_sec, tv_usec; in bus_expirelist_expire() local 208 _dbus_get_current_time (&tv_sec, &tv_usec); in bus_expirelist_expire() 210 next_interval = do_expiration_with_current_time (list, tv_sec, tv_usec); in bus_expirelist_expire() 319 long *tv_usec, in time_add_milliseconds() argument 323 *tv_usec = *tv_usec + milliseconds * 1000; in time_add_milliseconds() 324 if (*tv_usec >= 1000000) in time_add_milliseconds() 326 *tv_usec -= 1000000; in time_add_milliseconds() 336 long tv_sec, tv_usec; in bus_expire_list_test() local [all …]
|
/external/bluetooth/glib/glib/ |
D | gtimer.c | 210 tv.tv_usec = microseconds % G_USEC_PER_SEC; in g_usleep() 229 g_return_if_fail (time_->tv_usec >= 0 && time_->tv_usec < G_USEC_PER_SEC); in g_time_val_add() 233 time_->tv_usec += microseconds % G_USEC_PER_SEC; in g_time_val_add() 235 if (time_->tv_usec >= G_USEC_PER_SEC) in g_time_val_add() 237 time_->tv_usec -= G_USEC_PER_SEC; in g_time_val_add() 244 time_->tv_usec -= microseconds % G_USEC_PER_SEC; in g_time_val_add() 246 if (time_->tv_usec < 0) in g_time_val_add() 248 time_->tv_usec += G_USEC_PER_SEC; in g_time_val_add() 368 time_->tv_usec = 0; in g_time_val_from_iso8601() 376 time_->tv_usec += (*iso_date - '0') * mul; in g_time_val_from_iso8601() [all …]
|
/external/dropbear/ |
D | scpmisc.h | 55 (result)->tv_usec = (a)->tv_usec - (b)->tv_usec; \ 56 if ((result)->tv_usec < 0) { \ 58 (result)->tv_usec += 1000000; \ 66 (ts)->tv_nsec = (tv)->tv_usec * 1000; \
|
/external/bluetooth/glib/tests/ |
D | testglib.c | 1323 ref_date.tv_usec = 0; in various_string_tests() 1329 date.tv_sec, date.tv_usec, ref_date.tv_sec, ref_date.tv_usec, in various_string_tests() 1330 date.tv_sec - ref_date.tv_sec, date.tv_usec - ref_date.tv_usec); in various_string_tests() 1331 g_assert (date.tv_sec == ref_date.tv_sec && date.tv_usec == ref_date.tv_usec); in various_string_tests() 1336 date.tv_sec, date.tv_usec, ref_date.tv_sec, ref_date.tv_usec, in various_string_tests() 1337 date.tv_sec - ref_date.tv_sec, date.tv_usec - ref_date.tv_usec); in various_string_tests() 1338 g_assert (date.tv_sec == ref_date.tv_sec && date.tv_usec == ref_date.tv_usec); in various_string_tests() 1343 date.tv_sec, date.tv_usec, ref_date.tv_sec, ref_date.tv_usec, in various_string_tests() 1344 date.tv_sec - ref_date.tv_sec, date.tv_usec - ref_date.tv_usec); in various_string_tests() 1345 g_assert (date.tv_sec == ref_date.tv_sec && date.tv_usec == ref_date.tv_usec); in various_string_tests() [all …]
|
/external/libvpx/vpx_ports/ |
D | vpx_timer.h | 36 (result)->tv_usec = (a)->tv_usec - (b)->tv_usec; \ 37 if ((result)->tv_usec < 0) { \ 39 (result)->tv_usec += 1000000; \ 94 return diff.tv_sec ? 1000000 : diff.tv_usec; in vpx_usec_timer_elapsed()
|
/external/qemu/ |
D | osdep.h | 139 if (val1->tv_usec < val2->tv_usec) { in qemu_timersub() 141 res->tv_usec = val1->tv_usec - val2->tv_usec + 1000 * 1000; in qemu_timersub() 143 res->tv_usec = val1->tv_usec - val2->tv_usec; in qemu_timersub()
|
D | oslib-posix.c | 148 tv[i].tv_usec = tv_now.tv_usec; in qemu_utimensat() 151 tv[i].tv_usec = 0; in qemu_utimensat() 154 tv[i].tv_usec = times[i].tv_nsec / 1000; in qemu_utimensat()
|
/external/openssh/openbsd-compat/ |
D | bsd-misc.c | 153 tremain.tv_usec = time2wait.tv_usec - in nanosleep() 154 (tstop.tv_usec - tstart.tv_usec); in nanosleep() 155 tremain.tv_sec += tremain.tv_usec / 1000000L; in nanosleep() 156 tremain.tv_usec %= 1000000L; in nanosleep() 159 tremain.tv_usec = 0; in nanosleep() 189 sleepytime.tv_usec = 400000; in tcsendbreak()
|
/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/e2fsprogs/lib/uuid/ |
D | gen_uuid.c | 127 tv->tv_usec = n % 1000000; in gettimeofday() 154 srand((getpid() << 16) ^ getuid() ^ tv.tv_sec ^ tv.tv_usec); in get_random_fd() 157 jrand_seed[1] = getppid() ^ (tv.tv_usec & 0xFFFF); in get_random_fd() 158 jrand_seed[2] = (tv.tv_sec ^ tv.tv_usec) >> 16; in get_random_fd() 163 for (i = (tv.tv_sec ^ tv.tv_usec) & 0x1F; i > 0; i--) in get_random_fd() 355 last.tv_usec = tv2; in get_clock() 360 if ((last.tv_sec == 0) && (last.tv_usec == 0)) { in get_clock() 371 (tv.tv_usec < last.tv_usec))) { in get_clock() 376 (tv.tv_usec == last.tv_usec)) { in get_clock() 385 clock_reg = tv.tv_usec*10 + adjustment; in get_clock() [all …]
|
/external/qemu/distrib/sdl-1.2.12/src/timer/unix/ |
D | SDL_systimer.c | 83 ticks=(now.tv_sec-start.tv_sec)*1000+(now.tv_usec-start.tv_usec)/1000; in SDL_GetTicks() 93 tv.tv_usec = (ms%1000)*1000; in SDL_Delay() 129 tv.tv_usec = (ms%1000)*1000; in SDL_Delay() 174 timer.it_value.tv_usec = (SDL_alarm_interval%1000)*1000; in SDL_SYS_StartTimer() 176 timer.it_interval.tv_usec = (SDL_alarm_interval%1000)*1000; in SDL_SYS_StartTimer()
|
/external/openssl/ssl/ |
D | d1_lib.c | 305 if (s->d1->next_timeout.tv_sec == 0 && s->d1->next_timeout.tv_usec == 0) in dtls1_start_timer() 323 if (s->d1->next_timeout.tv_sec == 0 && s->d1->next_timeout.tv_usec == 0) in dtls1_get_timeout() 334 s->d1->next_timeout.tv_usec <= timenow.tv_usec)) in dtls1_get_timeout() 343 timeleft->tv_usec -= timenow.tv_usec; in dtls1_get_timeout() 344 if (timeleft->tv_usec < 0) in dtls1_get_timeout() 347 timeleft->tv_usec += 1000000; in dtls1_get_timeout() 354 if (timeleft->tv_sec == 0 && timeleft->tv_usec < 15000) in dtls1_get_timeout() 374 if (timeleft.tv_sec > 0 || timeleft.tv_usec > 0) in dtls1_is_timer_expired() 459 t->tv_usec = (long)tb.millitm * 1000; in get_current_time() 464 t->tv_usec = (long)tb.millitm * 1000; in get_current_time()
|
/external/chromium/sdch/open-vcdiff/src/ |
D | testing.h | 66 start_time_.tv_usec = 0; in Reset() 86 + end_time.tv_usec - start_time_.tv_usec; in Stop() 88 start_time_.tv_usec = 0; in Stop() 97 return (start_time_.tv_usec > 0) || (start_time_.tv_sec > 0); in IsStarted()
|
/external/strace/ |
D | resource.c | 273 unsigned tv_usec; in printrusage32() member 302 (long) ru.ru_utime.tv_sec, (long) ru.ru_utime.tv_usec, in printrusage32() 303 (long) ru.ru_stime.tv_sec, (long) ru.ru_stime.tv_usec); in printrusage32() 319 (long) ru.ru_utime.tv_sec, (long) ru.ru_utime.tv_usec, in printrusage32() 320 (long) ru.ru_stime.tv_sec, (long) ru.ru_stime.tv_usec); in printrusage32() 338 (long) ru.ru_utime.tv_sec, (long) ru.ru_utime.tv_usec, in printrusage() 339 (long) ru.ru_stime.tv_sec, (long) ru.ru_stime.tv_usec); in printrusage() 355 (long) ru.ru_utime.tv_sec, (long) ru.ru_utime.tv_usec, in printrusage() 356 (long) ru.ru_stime.tv_sec, (long) ru.ru_stime.tv_usec); in printrusage()
|
D | util.c | 106 return a->tv_sec || a->tv_usec; 114 || (a->tv_sec == b->tv_sec && a->tv_usec < b->tv_usec)) 117 || (a->tv_sec == b->tv_sec && a->tv_usec > b->tv_usec)) 126 return tv->tv_sec + tv->tv_usec/1000000.0; 134 tv->tv_usec = a->tv_usec + b->tv_usec; 135 if (tv->tv_usec >= 1000000) { 137 tv->tv_usec -= 1000000; 146 tv->tv_usec = a->tv_usec - b->tv_usec; 147 if (((long) tv->tv_usec) < 0) { 149 tv->tv_usec += 1000000; [all …]
|
D | count.c | 77 if (one_tick.tv_usec == 0) in count_syscall() 83 it.it_interval.tv_usec = 1; in count_syscall() 154 overhead.tv_usec = n % 1000000; in set_overhead() 174 call_cum = error_cum = tv_cum.tv_sec = tv_cum.tv_usec = 0; in call_summary_pers() 214 (long) 1000000 * dtv.tv_sec + dtv.tv_usec, in call_summary_pers()
|
/external/chromium/third_party/libevent/test/ |
D | test-time.c | 57 tv.tv_usec = rand_int(50000); in time_cb() 58 if (tv.tv_usec % 2) in time_cb() 81 tv.tv_usec = rand_int(50000); in main()
|
/external/dhcpcd/ |
D | common.h | 39 #define timeval_to_double(tv) ((tv)->tv_sec * 1.0 + (tv)->tv_usec * 1.0e-6) 42 while ((tvp)->tv_usec >= 1000000) { \ 44 (tvp)->tv_usec -= 1000000; \
|
/external/kernel-headers/original/linux/ |
D | jiffies.h | 354 long usec = value->tv_usec; in timeval_to_jiffies() 373 long tv_usec; in jiffies_to_timeval() local 375 value->tv_sec = div_long_long_rem(nsec, NSEC_PER_SEC, &tv_usec); in jiffies_to_timeval() 376 tv_usec /= NSEC_PER_USEC; in jiffies_to_timeval() 377 value->tv_usec = tv_usec; in jiffies_to_timeval()
|
/external/netperf/ |
D | netcpu_pstat.c | 162 if (time2.tv_usec < time1.tv_usec) in calibrate_idle_rate() 164 time2.tv_usec += 1000000; in calibrate_idle_rate() 168 usec = time2.tv_usec - time1.tv_usec; in calibrate_idle_rate()
|
D | netcpu_perfstat.c | 196 if (time2.tv_usec < time1.tv_usec) in calibrate_idle_rate() 198 time2.tv_usec += 1000000; in calibrate_idle_rate() 202 usec = time2.tv_usec - time1.tv_usec; in calibrate_idle_rate()
|