/external/chromium/third_party/libevent/compat/sys/ |
D | _time.h | 45 long tv_sec; /* seconds */ member 53 time_t tv_sec; /* seconds */ member 58 (ts)->tv_sec = (tv)->tv_sec; \ 62 (tv)->tv_sec = (ts)->tv_sec; \ 79 #define timerclear(tvp) (tvp)->tv_sec = (tvp)->tv_usec = 0 80 #define timerisset(tvp) ((tvp)->tv_sec || (tvp)->tv_usec) 82 (((tvp)->tv_sec == (uvp)->tv_sec) ? \ 84 ((tvp)->tv_sec cmp (uvp)->tv_sec)) 87 (vvp)->tv_sec = (tvp)->tv_sec + (uvp)->tv_sec; \ 90 (vvp)->tv_sec++; \ [all …]
|
D | _libevent_time.h | 45 long tv_sec; /* seconds */ member 53 time_t tv_sec; /* seconds */ member 58 (ts)->tv_sec = (tv)->tv_sec; \ 62 (tv)->tv_sec = (ts)->tv_sec; \ 79 #define timerclear(tvp) (tvp)->tv_sec = (tvp)->tv_usec = 0 80 #define timerisset(tvp) ((tvp)->tv_sec || (tvp)->tv_usec) 82 (((tvp)->tv_sec == (uvp)->tv_sec) ? \ 84 ((tvp)->tv_sec cmp (uvp)->tv_sec)) 87 (vvp)->tv_sec = (tvp)->tv_sec + (uvp)->tv_sec; \ 90 (vvp)->tv_sec++; \ [all …]
|
/external/kernel-headers/original/linux/ |
D | time.h | 13 time_t tv_sec; /* seconds */ member 19 time_t tv_sec; /* seconds */ member 41 return (a->tv_sec == b->tv_sec) && (a->tv_nsec == b->tv_nsec); in timespec_equal() 51 if (lhs->tv_sec < rhs->tv_sec) in timespec_compare() 53 if (lhs->tv_sec > rhs->tv_sec) in timespec_compare() 60 if (lhs->tv_sec < rhs->tv_sec) in timeval_compare() 62 if (lhs->tv_sec > rhs->tv_sec) in timeval_compare() 80 set_normalized_timespec(&ts_delta, lhs.tv_sec - rhs.tv_sec, in timespec_sub() 89 (((ts)->tv_sec >= 0) && (((unsigned long) (ts)->tv_nsec) < NSEC_PER_SEC)) 99 return xtime.tv_sec; in get_seconds() [all …]
|
D | compat.h | 210 if (lhs->tv_sec < rhs->tv_sec) in compat_timeval_compare() 212 if (lhs->tv_sec > rhs->tv_sec) in compat_timeval_compare() 220 if (lhs->tv_sec < rhs->tv_sec) in compat_timespec_compare() 222 if (lhs->tv_sec > rhs->tv_sec) in compat_timespec_compare()
|
D | ktime.h | 102 return ktime_set(ts.tv_sec, ts.tv_nsec); in timespec_to_ktime() 108 return ktime_set(tv.tv_sec, tv.tv_usec * NSEC_PER_USEC); in timeval_to_ktime() 204 return (ktime_t) { .tv = { .sec = (s32)ts.tv_sec, in timespec_to_ktime() 216 return (ktime_t) { .tv = { .sec = (s32)tv.tv_sec, in timeval_to_ktime() 228 return (struct timespec) { .tv_sec = (time_t) kt.tv.sec, in ktime_to_timespec() 241 .tv_sec = (time_t) kt.tv.sec, in ktime_to_timeval()
|
/external/chromium/third_party/libevent/ |
D | evutil.h | 128 (vvp)->tv_sec = (tvp)->tv_sec + (uvp)->tv_sec; \ 131 (vvp)->tv_sec++; \ 137 (vvp)->tv_sec = (tvp)->tv_sec - (uvp)->tv_sec; \ 140 (vvp)->tv_sec--; \ 149 #define evutil_timerclear(tvp) (tvp)->tv_sec = (tvp)->tv_usec = 0 153 (((tvp)->tv_sec == (uvp)->tv_sec) ? \ 155 ((tvp)->tv_sec cmp (uvp)->tv_sec)) 160 #define evutil_timerisset(tvp) ((tvp)->tv_sec || (tvp)->tv_usec)
|
/external/qemu/distrib/sdl-1.2.15/src/timer/unix/ |
D | SDL_systimer.c | 77 ticks=(now.tv_sec-start.tv_sec)*1000+(now.tv_nsec-start.tv_nsec)/1000000; in SDL_GetTicks() 83 ticks=(now.tv_sec-start.tv_sec)*1000+(now.tv_usec-start.tv_usec)/1000; in SDL_GetTicks() 92 tv.tv_sec = ms/1000; in SDL_Delay() 107 elapsed.tv_sec = ms/1000; in SDL_Delay() 116 tv.tv_sec = elapsed.tv_sec; in SDL_Delay() 128 tv.tv_sec = ms/1000; in SDL_Delay() 173 timer.it_value.tv_sec = (SDL_alarm_interval/1000); in SDL_SYS_StartTimer() 175 timer.it_interval.tv_sec = (SDL_alarm_interval/1000); in SDL_SYS_StartTimer()
|
/external/dropbear/ |
D | scpmisc.h | 54 (result)->tv_sec = (a)->tv_sec - (b)->tv_sec; \ 57 --(result)->tv_sec; \ 65 (ts)->tv_sec = (tv)->tv_sec; \
|
/external/openssh/openbsd-compat/ |
D | bsd-misc.c | 111 ub.actime = tvp[0].tv_sec; in utimes() 112 ub.modtime = tvp[1].tv_sec; in utimes() 151 tremain.tv_sec = time2wait.tv_sec - in nanosleep() 152 (tstop.tv_sec - tstart.tv_sec); in nanosleep() 155 tremain.tv_sec += tremain.tv_usec / 1000000L; in nanosleep() 158 tremain.tv_sec = 0; in nanosleep() 188 sleepytime.tv_sec = 0; in tcsendbreak()
|
/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/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() 314 s->d1->next_timeout.tv_sec += s->d1->timeout_duration; in dtls1_start_timer() 323 if (s->d1->next_timeout.tv_sec == 0 && s->d1->next_timeout.tv_usec == 0) in dtls1_get_timeout() 332 if (s->d1->next_timeout.tv_sec < timenow.tv_sec || in dtls1_get_timeout() 333 (s->d1->next_timeout.tv_sec == timenow.tv_sec && in dtls1_get_timeout() 342 timeleft->tv_sec -= timenow.tv_sec; in dtls1_get_timeout() 346 timeleft->tv_sec--; 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() 458 t->tv_sec = (long)tb.time; in get_current_time() [all …]
|
/external/e2fsprogs/lib/uuid/ |
D | gen_uuid.c | 126 tv->tv_sec = n / 1000000; in gettimeofday() 154 srand((getpid() << 16) ^ getuid() ^ tv.tv_sec ^ tv.tv_usec); in get_random_fd() 156 jrand_seed[0] = getpid() ^ (tv.tv_sec & 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() 354 last.tv_sec = tv1; in get_clock() 360 if ((last.tv_sec == 0) && (last.tv_usec == 0)) { in get_clock() 364 last.tv_sec--; in get_clock() 369 if ((tv.tv_sec < last.tv_sec) || in get_clock() 370 ((tv.tv_sec == last.tv_sec) && in get_clock() [all …]
|
/external/libvpx/libvpx/vpx_ports/ |
D | vpx_timer.h | 36 (result)->tv_sec = (a)->tv_sec - (b)->tv_sec; \ 39 --(result)->tv_sec; \ 93 return diff.tv_sec * 1000000 + diff.tv_usec; in vpx_usec_timer_elapsed()
|
/external/chromium/base/synchronization/ |
D | condition_variable_posix.cc | 50 abstime.tv_sec = now.tv_sec + (usecs / Time::kMicrosecondsPerSecond); in TimedWait() 53 abstime.tv_sec += abstime.tv_nsec / Time::kNanosecondsPerSecond; in TimedWait() 55 DCHECK_GE(abstime.tv_sec, now.tv_sec); // Overflow paranoia in TimedWait()
|
/external/webrtc/src/system_wrappers/source/ |
D | event_posix.cc | 153 tEnd.tv_sec += timeout / 1000; in Wait() 158 tEnd.tv_sec++; in Wait() 219 _tCreate.tv_sec = 0; in StartTimer() 247 if (_tCreate.tv_sec == 0) in Process() 268 tEnd.tv_sec = _tCreate.tv_sec + time/1000; in Process() 273 tEnd.tv_sec++; in Process()
|
/external/skia/bench/ |
D | BenchSysTimer_posix.cpp | 18 duration_clock = (end_clock.tv_sec - start_clock.tv_sec-1)*1000; in intervalInMSec() 22 duration_clock = (end_clock.tv_sec - start_clock.tv_sec)*1000; in intervalInMSec()
|
/external/libnfc-nxp/Linux_x86/ |
D | phDal4Nfc_uart.c | 272 delta.tv_sec = timeout.tv_sec - now.tv_sec; in timeval_remaining() 277 delta.tv_sec--; in timeval_remaining() 279 if (delta.tv_sec < 0) { in timeval_remaining() 280 delta.tv_sec = 0; in timeval_remaining() 318 timeout.tv_sec++; in phDal4Nfc_uart_read() 324 timeout.tv_sec += 10; in phDal4Nfc_uart_read()
|
/external/libusb_aah/libusb/ |
D | io.c | 1051 (tv)->tv_sec = (long)(ts)->tv_sec; \ 1224 current_time.tv_sec += timeout / 1000; in calculate_timeout() 1229 current_time.tv_sec++; in calculate_timeout() 1268 if (!timerisset(cur_tv) || (cur_tv->tv_sec > timeout->tv_sec) || in add_to_flying_list() 1269 (cur_tv->tv_sec == timeout->tv_sec && in add_to_flying_list() 1400 { itransfer->timeout.tv_sec, itransfer->timeout.tv_usec * 1000 } }; in libusb_submit_transfer() 1491 { cur_tv->tv_sec, cur_tv->tv_usec * 1000 } }; in arm_timerfd_for_next_timeout() 1830 timeout.tv_sec += tv->tv_sec; in libusb_wait_for_event() 1834 timeout.tv_sec++; in libusb_wait_for_event() 1886 if ((cur_tv->tv_sec > systime.tv_sec) || in handle_timeouts_locked() [all …]
|
/external/libusb_aah/libusb/os/ |
D | poll_windows.h | 101 (result)->tv_sec = (a)->tv_sec - (b)->tv_sec; \ 104 --(result)->tv_sec; \
|
/external/iproute2/misc/ |
D | lnstat_util.c | 70 if (now->tv_sec > last->tv_sec + tout->tv_sec) in time_after() 73 if (now->tv_sec == last->tv_sec + tout->tv_sec) { in time_after() 107 / lf->interval.tv_sec; in lnstat_update() 191 lf->interval.tv_sec = 1; in alloc_and_open()
|
/external/chromium/sdch/open-vcdiff/src/ |
D | testing.h | 65 start_time_.tv_sec = 0; in Reset() 85 (1000000 * (end_time.tv_sec - start_time_.tv_sec)) in Stop() 87 start_time_.tv_sec = 0; in Stop() 97 return (start_time_.tv_usec > 0) || (start_time_.tv_sec > 0); in IsStarted()
|
/external/open-vcdiff/src/ |
D | testing.h | 65 start_time_.tv_sec = 0; in Reset() 85 (1000000 * (end_time.tv_sec - start_time_.tv_sec)) in Stop() 87 start_time_.tv_sec = 0; in Stop() 97 return (start_time_.tv_usec > 0) || (start_time_.tv_sec > 0); in IsStarted()
|
/external/qemu/ |
D | oslib-posix.c | 147 tv[i].tv_sec = tv_now.tv_sec; in qemu_utimensat() 150 tv[i].tv_sec = (i == 0) ? st.st_atime : st.st_mtime; in qemu_utimensat() 153 tv[i].tv_sec = times[i].tv_sec; in qemu_utimensat()
|
/external/strace/ |
D | resource.c | 272 unsigned tv_sec; 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()
|
/external/libusb/libusb/ |
D | io.c | 1075 current_time.tv_sec += timeout / 1000; in calculate_timeout() 1080 current_time.tv_sec++; in calculate_timeout() 1119 if (!timerisset(cur_tv) || (cur_tv->tv_sec > timeout->tv_sec) || in add_to_flying_list() 1120 (cur_tv->tv_sec == timeout->tv_sec && in add_to_flying_list() 1247 { itransfer->timeout.tv_sec, itransfer->timeout.tv_usec * 1000 } }; in libusb_submit_transfer() 1326 { cur_tv->tv_sec, cur_tv->tv_usec * 1000 } }; in arm_timerfd_for_next_timeout() 1661 timeout.tv_sec += tv->tv_sec; in libusb_wait_for_event() 1665 timeout.tv_sec++; in libusb_wait_for_event() 1727 if ((cur_tv->tv_sec > systime.tv_sec) || in handle_timeouts_locked() 1728 (cur_tv->tv_sec == systime.tv_sec && in handle_timeouts_locked() [all …]
|