/external/chromium/third_party/libevent/compat/sys/ |
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 …]
|
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 …]
|
/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/dbus/bus/ |
D | expirelist.c | 119 long tv_sec, in do_expiration_with_current_time() argument 138 tv_sec, tv_usec); in do_expiration_with_current_time() 181 long tv_sec, tv_usec; in bus_expirelist_expire() local 183 _dbus_get_current_time (&tv_sec, &tv_usec); in bus_expirelist_expire() 185 next_interval = do_expiration_with_current_time (list, tv_sec, tv_usec); in bus_expirelist_expire() 227 time_add_milliseconds (long *tv_sec, in time_add_milliseconds() argument 231 *tv_sec = *tv_sec + milliseconds / 1000; in time_add_milliseconds() 236 *tv_sec += 1; in time_add_milliseconds() 245 long tv_sec, tv_usec; in bus_expire_list_test() local 263 _dbus_get_current_time (&tv_sec, &tv_usec); in bus_expire_list_test() [all …]
|
/external/qemu/distrib/sdl-1.2.12/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/bluetooth/glib/tests/ |
D | testglib.c | 1322 ref_date.tv_sec = REF_SEC_UTC; 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/openssl/ssl/ |
D | d1_lib.c | 241 if (s->d1->next_timeout.tv_sec == 0 && s->d1->next_timeout.tv_usec == 0) in dtls1_start_timer() 250 s->d1->next_timeout.tv_sec += s->d1->timeout_duration; in dtls1_start_timer() 259 if (s->d1->next_timeout.tv_sec == 0 && s->d1->next_timeout.tv_usec == 0) in dtls1_get_timeout() 268 if (s->d1->next_timeout.tv_sec < timenow.tv_sec || in dtls1_get_timeout() 269 (s->d1->next_timeout.tv_sec == timenow.tv_sec && in dtls1_get_timeout() 278 timeleft->tv_sec -= timenow.tv_sec; in dtls1_get_timeout() 282 timeleft->tv_sec--; in dtls1_get_timeout() 290 if (timeleft->tv_sec == 0 && timeleft->tv_usec < 15000) in dtls1_get_timeout() 310 if (timeleft.tv_sec > 0 || timeleft.tv_usec > 0) in dtls1_is_timer_expired() 370 t->tv_sec = (long)tb.time; in get_current_time() [all …]
|
/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; \
|
D | loginrec.c | 304 li->tv_sec = tv.tv_sec; in login_set_current_time() 480 ut->ut_tv.tv_sec = li->tv_sec; in set_utmp_time() 484 ut->ut_time = li->tv_sec; in set_utmp_time() 577 utx->ut_tv.tv_sec = li->tv_sec; in set_utmpx_time() 581 utx->ut_time = li->tv_sec; in set_utmpx_time() 1000 li->tv_sec = li->tv_usec = 0; in wtmp_get_entry() 1033 li->tv_sec = ut.ut_time; in wtmp_get_entry() 1036 li->tv_sec = ut.ut_tv.tv_sec; in wtmp_get_entry() 1156 li->tv_sec = li->tv_usec = 0; in wtmpx_get_entry() 1189 li->tv_sec = utx.ut_tv.tv_sec; in wtmpx_get_entry() [all …]
|
/external/openssl/crypto/bio/ |
D | bss_dgram.c | 192 if (data->next_timeout.tv_sec > 0 || data->next_timeout.tv_usec > 0) in dgram_adjust_rcv_timeout() 204 data->socket_timeout.tv_sec = timeout / 1000; in dgram_adjust_rcv_timeout() 218 timeleft.tv_sec -= timenow.tv_sec; in dgram_adjust_rcv_timeout() 222 timeleft.tv_sec--; in dgram_adjust_rcv_timeout() 226 if (timeleft.tv_sec < 0) in dgram_adjust_rcv_timeout() 228 timeleft.tv_sec = 0; in dgram_adjust_rcv_timeout() 235 if ((data->socket_timeout.tv_sec == 0 && data->socket_timeout.tv_usec == 0) || in dgram_adjust_rcv_timeout() 236 (data->socket_timeout.tv_sec > timeleft.tv_sec) || in dgram_adjust_rcv_timeout() 237 (data->socket_timeout.tv_sec == timeleft.tv_sec && in dgram_adjust_rcv_timeout() 241 timeout = timeleft.tv_sec * 1000 + timeleft.tv_usec / 1000; in dgram_adjust_rcv_timeout() [all …]
|
/external/skia/src/ports/ |
D | SkOSEvent_android.cpp | 71 gTimeSpec.tv_sec = 0; in timer_event_thread_proc() 74 if (spec.tv_sec == 0 && spec.tv_nsec == 0) in timer_event_thread_proc() 110 tv.tv_sec += tv.tv_usec / kMillion; in SignalQueueTimer() 116 gTimeSpec.tv_sec = (tv.tv_sec + (delay / kThousand) * kThousand) * kThousand; in SignalQueueTimer() 122 gTimeSpec.tv_sec += 1; in SignalQueueTimer() 131 gTimeSpec.tv_sec = 0; in SignalQueueTimer()
|
/external/e2fsprogs/lib/uuid/ |
D | gen_uuid.c | 116 srand((getpid() << 16) ^ getuid() ^ tv.tv_sec ^ tv.tv_usec); in get_random_fd() 118 jrand_seed[0] = getpid() ^ (tv.tv_sec & 0xFFFF); in get_random_fd() 120 jrand_seed[2] = (tv.tv_sec ^ tv.tv_usec) >> 16; in get_random_fd() 125 for (i = (tv.tv_sec ^ tv.tv_usec) & 0x1F; i > 0; i--) in get_random_fd() 310 last.tv_sec = tv1; in get_clock() 316 if ((last.tv_sec == 0) && (last.tv_usec == 0)) { in get_clock() 320 last.tv_sec--; in get_clock() 325 if ((tv.tv_sec < last.tv_sec) || in get_clock() 326 ((tv.tv_sec == last.tv_sec) && in get_clock() 331 } else if ((tv.tv_sec == last.tv_sec) && in get_clock() [all …]
|
/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/libvpx/vpx_ports/ |
D | vpx_timer.h | 33 (result)->tv_sec = (a)->tv_sec - (b)->tv_sec; \ 36 --(result)->tv_sec; \ 92 return diff.tv_sec ? 1000000 : diff.tv_usec; in vpx_usec_timer_elapsed()
|
/external/chromium/base/ |
D | condition_variable_posix.cc | 42 abstime.tv_sec = now.tv_sec + (usecs / Time::kMicrosecondsPerSecond); in TimedWait() 45 abstime.tv_sec += abstime.tv_nsec / Time::kNanosecondsPerSecond; in TimedWait() 47 DCHECK(abstime.tv_sec >= now.tv_sec); // Overflow paranoia in TimedWait()
|
/external/bluetooth/glib/glib/ |
D | gtimer.c | 168 request.tv_sec = microseconds / G_USEC_PER_SEC; in g_usleep() 176 request.tv_sec = microseconds / G_USEC_PER_SEC; in g_usleep() 209 tv.tv_sec = microseconds / G_USEC_PER_SEC; in g_usleep() 234 time_->tv_sec += microseconds / G_USEC_PER_SEC; in g_time_val_add() 238 time_->tv_sec++; in g_time_val_add() 245 time_->tv_sec -= microseconds / G_USEC_PER_SEC; in g_time_val_add() 249 time_->tv_sec--; in g_time_val_add() 367 time_->tv_sec = mktime_utc (&tm); in g_time_val_from_iso8601() 392 time_->tv_sec += (time_t) (60 * val * sign); in g_time_val_from_iso8601() 426 secs = time_->tv_sec; in g_time_val_to_iso8601()
|
/external/dhcpcd/ |
D | client.c | 121 (tvp)->tv_sec++; \ 126 #define timerneg(tvp) ((tvp)->tv_sec < 0 || (tvp)->tv_usec < 0) 359 return tv->tv_sec * 1.0 + tv->tv_usec * 1.0e-6; in timeval_to_double() 430 offset = tv.tv_sec - lease->leasedfrom; in get_old_lease() 432 tv.tv_sec - lease->leasedfrom > (time_t)lease->leasetime) in get_old_lease() 585 state->stop.tv_sec = options->timeout; in client_setup() 587 state->exit.tv_sec = state->stop.tv_sec + 10; in client_setup() 589 state->exit.tv_sec = options->timeout; in client_setup() 689 state->stop.tv_sec = 1; in send_message() 717 state->exit.tv_sec = -1; in reduce_timers() [all …]
|
/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/v8/src/ |
D | platform-solaris.cc | 467 (ts)->tv_sec = (tv)->tv_sec; \ 476 (result)->tv_sec = (a)->tv_sec + (b)->tv_sec; \ 479 ++(result)->tv_sec; \ 492 delta.tv_sec = timeout / kOneSecondMicros; in Wait() 580 itimer.it_interval.tv_sec = interval_ / 1000; in Start() 582 itimer.it_value.tv_sec = itimer.it_interval.tv_sec; in Start()
|
/external/ipsec-tools/src/racoon/ |
D | misc.c | 166 return t2->tv_sec - t1->tv_sec + 169 return t2->tv_sec - t1->tv_sec - 1 +
|
/external/strace/ |
D | time.c | 59 tprintf("{%lu, %lu}", (long) tv.tv_sec, (long) tv.tv_usec); 65 unsigned tv_sec; member 83 tprintf("{%u, %u}", tv.tv_sec, tv.tv_usec); 219 (long) itv.it_interval.tv_sec, (long) itv.it_interval.tv_usec, 220 (long) itv.it_value.tv_sec, (long) itv.it_value.tv_usec); 245 itv.it_interval.tv_sec, itv.it_interval.tv_usec, 246 itv.it_value.tv_sec, itv.it_value.tv_usec); 348 txc.tolerance, (long) txc.time.tv_sec, 358 txc.tolerance, (long) txc.time.tv_sec,
|