/external/compiler-rt/test/sanitizer_common/TestCases/Linux/ |
D | timerfd.cc | 15 its.it_value.tv_sec = 0; in main() 17 its.it_interval.tv_sec = its.it_value.tv_sec; in main() 26 assert(its2.it_interval.tv_sec == its.it_interval.tv_sec); in main() 28 assert(its2.it_value.tv_sec <= its.it_value.tv_sec); in main() 34 assert(its3.it_interval.tv_sec == its.it_interval.tv_sec); in main() 36 assert(its3.it_value.tv_sec <= its.it_value.tv_sec); in main()
|
/external/lldb/tools/debugserver/source/ |
D | DNBTimer.h | 82 return (uint64_t)(m_timeval.tv_sec) * 1000000ull + (uint64_t)m_timeval.tv_usec; in TotalMicroSeconds() 89 sec = m_timeval.tv_sec; in GetTime() 102 uint64_t now_usec = (uint64_t)(now.tv_sec) * 1000000ull + (uint64_t)now.tv_usec; in ElapsedMicroSeconds() 103 … uint64_t this_usec = (uint64_t)(m_timeval.tv_sec) * 1000000ull + (uint64_t)m_timeval.tv_usec; in ElapsedMicroSeconds() 115 uint64_t now_usec = (uint64_t)(now.tv_sec) * 1000000ull + (uint64_t)now.tv_usec; in GetTimeOfDay() 134 ts->tv_sec = ts->tv_sec + ts->tv_nsec / 1000000000 + sec_offset; 143 if (now.tv_sec > ts.tv_sec) in TimeOfDayLaterThan() 145 else if (now.tv_sec < ts.tv_sec) in TimeOfDayLaterThan()
|
/external/ltrace/ |
D | summary.c | 61 diff.tv_sec = tv.tv_sec - start.tv_sec; in calc_time_spent() 65 diff.tv_sec--; in calc_time_spent() 82 data->tot_usecs += 1000000 * st->tv.tv_sec; in fill_struct() 90 if (en2->tv.tv_sec - en1->tv.tv_sec) in compar() 91 return en2->tv.tv_sec - en1->tv.tv_sec; in compar() 102 c = 1000000 * (int)entry->tv.tv_sec + in dump_one() 108 (int)entry->tv.tv_sec, (int)entry->tv.tv_usec, in dump_one() 194 st->tv.tv_sec++; in summary_account_call() 199 st->tv.tv_sec += spent.tm.tv_sec; in summary_account_call()
|
/external/boringssl/src/ssl/ |
D | d1_lib.c | 161 if (s->d1->next_timeout.tv_sec == 0 && s->d1->next_timeout.tv_usec == 0) { in dtls1_start_timer() 169 s->d1->next_timeout.tv_sec += s->d1->timeout_duration; in dtls1_start_timer() 180 if (ssl->d1->next_timeout.tv_sec == 0 && ssl->d1->next_timeout.tv_usec == 0) { in DTLSv1_get_timeout() 189 if (ssl->d1->next_timeout.tv_sec < timenow.tv_sec || in DTLSv1_get_timeout() 190 (ssl->d1->next_timeout.tv_sec == timenow.tv_sec && in DTLSv1_get_timeout() 198 out->tv_sec -= timenow.tv_sec; in DTLSv1_get_timeout() 201 out->tv_sec--; in DTLSv1_get_timeout() 207 if (out->tv_sec == 0 && out->tv_usec < 15000) { in DTLSv1_get_timeout() 223 if (timeleft.tv_sec > 0 || timeleft.tv_usec > 0) { in dtls1_is_timer_expired() 301 out_clock->tv_sec = time.time; in get_current_time()
|
/external/openssh/openbsd-compat/ |
D | bsd-misc.c | 112 ub.actime = tvp[0].tv_sec; in utimes() 113 ub.modtime = tvp[1].tv_sec; in utimes() 152 tremain.tv_sec = time2wait.tv_sec - in nanosleep() 153 (tstop.tv_sec - tstart.tv_sec); in nanosleep() 156 tremain.tv_sec += tremain.tv_usec / 1000000L; in nanosleep() 159 tremain.tv_sec = 0; in nanosleep() 174 ts.tv_sec = useconds / 1000000; in usleep() 200 sleepytime.tv_sec = 0; in tcsendbreak()
|
/external/v8/src/base/platform/ |
D | time.cc | 105 return TimeDelta(ts.tv_sec * Time::kMicrosecondsPerSecond + in FromMachTimespec() 113 ts.tv_sec = delta_ / Time::kMicrosecondsPerSecond; in ToMachTimespec() 128 return TimeDelta(ts.tv_sec * Time::kMicrosecondsPerSecond + in FromTimespec() 135 ts.tv_sec = delta_ / Time::kMicrosecondsPerSecond; in ToTimespec() 270 if (ts.tv_nsec == 0 && ts.tv_sec == 0) { in FromTimespec() 274 ts.tv_sec == std::numeric_limits<time_t>::max()) { in FromTimespec() 277 return Time(ts.tv_sec * kMicrosecondsPerSecond + in FromTimespec() 285 ts.tv_sec = 0; in ToTimespec() 290 ts.tv_sec = std::numeric_limits<time_t>::max(); in ToTimespec() 294 ts.tv_sec = us_ / kMicrosecondsPerSecond; in ToTimespec() [all …]
|
/external/fio/os/ |
D | os-mac.h | 79 tv.it_interval.tv_sec = value->it_interval.tv_sec; in timer_settime() 82 tv.it_value.tv_sec = value->it_value.tv_sec; in timer_settime() 95 ovalue->it_interval.tv_sec = tv_out.it_interval.tv_sec; in timer_settime() 97 ovalue->it_value.tv_sec = tv_out.it_value.tv_sec; in timer_settime()
|
/external/mesa3d/src/gallium/state_trackers/xvmc/tests/ |
D | testlib.c | 128 y->tv_sec += nsec; in timeval_subtract() 134 y->tv_sec -= nsec; in timeval_subtract() 141 result->tv_sec = x->tv_sec - y->tv_sec; in timeval_subtract() 145 return x->tv_sec < y->tv_sec; in timeval_subtract()
|
/external/toybox/toys/posix/ |
D | time.c | 41 tv2.tv_sec--; 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/e2fsprogs/lib/uuid/ |
D | gen_uuid.c | 127 tv->tv_sec = n / 1000000; in gettimeofday() 155 srand((getpid() << 16) ^ getuid() ^ tv.tv_sec ^ tv.tv_usec); in get_random_fd() 157 jrand_seed[0] = getpid() ^ (tv.tv_sec & 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() 358 last.tv_sec = tv1; in get_clock() 364 if ((last.tv_sec == 0) && (last.tv_usec == 0)) { in get_clock() 368 last.tv_sec--; in get_clock() 373 if ((tv.tv_sec < last.tv_sec) || in get_clock() 374 ((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/libvpx/vpx_ports/ |
D | vpx_timer.h | 36 (result)->tv_sec = (a)->tv_sec - (b)->tv_sec; \ 39 --(result)->tv_sec; \ 89 return diff.tv_sec * 1000000 + diff.tv_usec; in vpx_usec_timer_elapsed()
|
/external/strace/ |
D | util.c | 63 return a->tv_sec || a->tv_usec; in tv_nz() 69 if (a->tv_sec < b->tv_sec in tv_cmp() 70 || (a->tv_sec == b->tv_sec && a->tv_usec < b->tv_usec)) in tv_cmp() 72 if (a->tv_sec > b->tv_sec in tv_cmp() 73 || (a->tv_sec == b->tv_sec && a->tv_usec > b->tv_usec)) in tv_cmp() 81 return tv->tv_sec + tv->tv_usec/1000000.0; in tv_float() 87 tv->tv_sec = a->tv_sec + b->tv_sec; in tv_add() 90 tv->tv_sec++; in tv_add() 98 tv->tv_sec = a->tv_sec - b->tv_sec; in tv_sub() 101 tv->tv_sec--; in tv_sub() [all …]
|
D | resource.c | 188 unsigned tv_sec; in printrusage32() member 218 (long) ru.ru_utime.tv_sec, (long) ru.ru_utime.tv_usec, in printrusage32() 219 (long) ru.ru_stime.tv_sec, (long) ru.ru_stime.tv_usec); in printrusage32() 235 (long) ru.ru_utime.tv_sec, (long) ru.ru_utime.tv_usec, in printrusage32() 236 (long) ru.ru_stime.tv_sec, (long) ru.ru_stime.tv_usec); in printrusage32() 254 (long) ru.ru_utime.tv_sec, (long) ru.ru_utime.tv_usec, in printrusage() 255 (long) ru.ru_stime.tv_sec, (long) ru.ru_stime.tv_usec); in printrusage() 271 (long) ru.ru_utime.tv_sec, (long) ru.ru_utime.tv_usec, in printrusage() 272 (long) ru.ru_stime.tv_sec, (long) ru.ru_stime.tv_usec); in printrusage()
|
/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()
|
D | condition_variable_posix.cc | 119 ts.tv_sec = tv.tv_sec; in SleepCS() 123 ts.tv_sec += maxTimeInMS / MILLISECONDS_PER_SECOND; in SleepCS() 129 ts.tv_sec += ts.tv_nsec / NANOSECONDS_PER_SECOND; in SleepCS()
|
/external/skia/tools/timer/ |
D | SysTimer_posix.cpp | 13 duration_clock = (end_clock.tv_sec - start_clock.tv_sec - 1) * 1000; in interval_in_ms() 16 duration_clock = (end_clock.tv_sec - start_clock.tv_sec) * 1000; in interval_in_ms()
|
/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/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/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 …]
|
/external/openssh/ |
D | loginrec.c | 277 return (li.tv_sec); in login_get_lastlog_time() 409 li->tv_sec = tv.tv_sec; in login_set_current_time() 635 ut->ut_tv.tv_sec = li->tv_sec; in set_utmp_time() 638 ut->ut_time = li->tv_sec; in set_utmp_time() 733 utx->ut_tv.tv_sec = li->tv_sec; in set_utmpx_time() 736 utx->ut_time = li->tv_sec; in set_utmpx_time() 1186 li->tv_sec = li->tv_usec = 0; in wtmp_get_entry() 1221 li->tv_sec = ut.ut_time; in wtmp_get_entry() 1224 li->tv_sec = ut.ut_tv.tv_sec; in wtmp_get_entry() 1351 li->tv_sec = li->tv_usec = 0; in wtmpx_get_entry() [all …]
|
/external/compiler-rt/test/msan/ |
D | signal_stress_test.cc | 41 itv.it_interval.tv_sec = 0; in main() 43 itv.it_value.tv_sec = 0; in main() 63 itv.it_interval.tv_sec = 0; in main() 65 itv.it_value.tv_sec = 0; in main()
|
/external/jemalloc/test/src/ |
D | timer.c | 34 return (((timer->tv1.tv_sec - timer->tv0.tv_sec) * 1000000) + in timer_usec() 37 return (((timer->tv1.tv_sec - timer->tv0.tv_sec) * 1000000) + in timer_usec()
|
/external/fio/ |
D | gettime.h | 34 last_sec = tv->tv_sec = fio_tv->tv_sec; in fio_gettime_offload() 36 } while (fio_tv->tv_sec != last_sec); in fio_gettime_offload()
|
/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 +
|