/external/chromium_org/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/chromium_org/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/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/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/chromium_org/base/synchronization/ |
D | condition_variable_posix.cc | 65 relative_time.tv_sec = usecs / Time::kMicrosecondsPerSecond; in TimedWait() 83 absolute_time.tv_sec = now.tv_sec; in TimedWait() 88 absolute_time.tv_sec = now.tv_sec; in TimedWait() 92 absolute_time.tv_sec += relative_time.tv_sec; in TimedWait() 94 absolute_time.tv_sec += absolute_time.tv_nsec / Time::kNanosecondsPerSecond; in TimedWait() 96 DCHECK_GE(absolute_time.tv_sec, now.tv_sec); // Overflow paranoia in TimedWait()
|
/external/chromium_org/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/chromium_org/third_party/mesa/src/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/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/chromium_org/components/nacl/loader/nonsfi/ |
D | irt_futex.cc | 27 reltime->tv_sec = nacl_abstime.tv_sec - now.tv_sec; in NaClAbsTimeToRelTime() 30 reltime->tv_sec -= 1; in NaClAbsTimeToRelTime() 52 if (timeout.tv_sec < 0) in IrtFutexWaitAbs()
|
/external/chromium_org/third_party/libusb/src/libusb/os/ |
D | poll_windows.h | 111 (tv)->tv_sec = (long)(ts)->tv_sec; \ 118 (result)->tv_sec = (a)->tv_sec - (b)->tv_sec; \ 121 --(result)->tv_sec; \
|
/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 | 319 if (s->d1->next_timeout.tv_sec == 0 && s->d1->next_timeout.tv_usec == 0) in dtls1_start_timer() 328 s->d1->next_timeout.tv_sec += s->d1->timeout_duration; in dtls1_start_timer() 337 if (s->d1->next_timeout.tv_sec == 0 && s->d1->next_timeout.tv_usec == 0) in dtls1_get_timeout() 346 if (s->d1->next_timeout.tv_sec < timenow.tv_sec || in dtls1_get_timeout() 347 (s->d1->next_timeout.tv_sec == timenow.tv_sec && in dtls1_get_timeout() 356 timeleft->tv_sec -= timenow.tv_sec; in dtls1_get_timeout() 360 timeleft->tv_sec--; in dtls1_get_timeout() 368 if (timeleft->tv_sec == 0 && timeleft->tv_usec < 15000) in dtls1_get_timeout() 388 if (timeleft.tv_sec > 0 || timeleft.tv_usec > 0) in dtls1_is_timer_expired() 472 t->tv_sec = (long)tb.time; in get_current_time() [all …]
|
/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/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/chromium_org/third_party/libvpx/source/libvpx/vpx_ports/ |
D | vpx_timer.h | 39 (result)->tv_sec = (a)->tv_sec - (b)->tv_sec; \ 42 --(result)->tv_sec; \ 92 return diff.tv_sec * 1000000 + diff.tv_usec; in vpx_usec_timer_elapsed()
|
/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/chromium_org/third_party/boringssl/src/ssl/ |
D | d1_lib.c | 329 if (s->d1->next_timeout.tv_sec == 0 && s->d1->next_timeout.tv_usec == 0) in dtls1_start_timer() 338 s->d1->next_timeout.tv_sec += s->d1->timeout_duration; in dtls1_start_timer() 347 if (s->d1->next_timeout.tv_sec == 0 && s->d1->next_timeout.tv_usec == 0) in dtls1_get_timeout() 356 if (s->d1->next_timeout.tv_sec < timenow.tv_sec || in dtls1_get_timeout() 357 (s->d1->next_timeout.tv_sec == timenow.tv_sec && in dtls1_get_timeout() 366 timeleft->tv_sec -= timenow.tv_sec; in dtls1_get_timeout() 370 timeleft->tv_sec--; in dtls1_get_timeout() 378 if (timeleft->tv_sec == 0 && timeleft->tv_usec < 15000) in dtls1_get_timeout() 398 if (timeleft.tv_sec > 0 || timeleft.tv_usec > 0) in dtls1_is_timer_expired() 474 t->tv_sec = time.time; in get_current_time()
|
/external/chromium_org/third_party/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/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/chromium_org/third_party/webrtc/system_wrappers/source/ |
D | event_posix.cc | 136 end_at.tv_sec += timeout / 1000; in Wait() 140 end_at.tv_sec++; in Wait() 195 created_at_.tv_sec = 0; in StartTimer() 222 if (created_at_.tv_sec == 0) { in Process() 242 end_at.tv_sec = created_at_.tv_sec + time / 1000; in Process() 246 end_at.tv_sec++; in Process()
|
/external/strace/ |
D | resource.c | 191 unsigned tv_sec; in printrusage32() member 221 (long) ru.ru_utime.tv_sec, (long) ru.ru_utime.tv_usec, in printrusage32() 222 (long) ru.ru_stime.tv_sec, (long) ru.ru_stime.tv_usec); in printrusage32() 238 (long) ru.ru_utime.tv_sec, (long) ru.ru_utime.tv_usec, in printrusage32() 239 (long) ru.ru_stime.tv_sec, (long) ru.ru_stime.tv_usec); in printrusage32() 257 (long) ru.ru_utime.tv_sec, (long) ru.ru_utime.tv_usec, in printrusage() 258 (long) ru.ru_stime.tv_sec, (long) ru.ru_stime.tv_usec); in printrusage() 274 (long) ru.ru_utime.tv_sec, (long) ru.ru_utime.tv_usec, in printrusage() 275 (long) ru.ru_stime.tv_sec, (long) ru.ru_stime.tv_usec); in printrusage()
|
/external/fio/ |
D | gettime.c | 164 tp->tv_sec = ts.tv_sec; in __fio_gettime() 185 tp->tv_sec = usecs / 1000000; in __fio_gettime() 225 if (tp->tv_sec < tv->last_tv.tv_sec) in fio_gettime() 226 tp->tv_sec = tv->last_tv.tv_sec; in fio_gettime() 227 else if (tv->last_tv.tv_sec == tp->tv_sec && in fio_gettime() 385 sec = e->tv_sec - s->tv_sec; in utime_since() 415 sec = e->tv_sec - s->tv_sec; in mtime_since()
|