/external/chromium/third_party/libevent/compat/sys/ |
D | _time.h | 54 long tv_nsec; /* and nanoseconds */ member 59 (ts)->tv_nsec = (tv)->tv_usec * 1000; \ 63 (tv)->tv_usec = (ts)->tv_nsec / 1000; \ 105 #define timespecclear(tsp) (tsp)->tv_sec = (tsp)->tv_nsec = 0 106 #define timespecisset(tsp) ((tsp)->tv_sec || (tsp)->tv_nsec) 109 ((tsp)->tv_nsec cmp (usp)->tv_nsec) : \ 114 (vsp)->tv_nsec = (tsp)->tv_nsec + (usp)->tv_nsec; \ 115 if ((vsp)->tv_nsec >= 1000000000L) { \ 117 (vsp)->tv_nsec -= 1000000000L; \ 123 (vsp)->tv_nsec = (tsp)->tv_nsec - (usp)->tv_nsec; \ [all …]
|
D | _libevent_time.h | 54 long tv_nsec; /* and nanoseconds */ member 59 (ts)->tv_nsec = (tv)->tv_usec * 1000; \ 63 (tv)->tv_usec = (ts)->tv_nsec / 1000; \ 105 #define timespecclear(tsp) (tsp)->tv_sec = (tsp)->tv_nsec = 0 106 #define timespecisset(tsp) ((tsp)->tv_sec || (tsp)->tv_nsec) 109 ((tsp)->tv_nsec cmp (usp)->tv_nsec) : \ 114 (vsp)->tv_nsec = (tsp)->tv_nsec + (usp)->tv_nsec; \ 115 if ((vsp)->tv_nsec >= 1000000000L) { \ 117 (vsp)->tv_nsec -= 1000000000L; \ 123 (vsp)->tv_nsec = (tsp)->tv_nsec - (usp)->tv_nsec; \ [all …]
|
/external/qemu/ |
D | oslib-posix.c | 130 if (times[0].tv_nsec == UTIME_OMIT && times[1].tv_nsec == UTIME_OMIT) { in qemu_utimensat() 133 if (times[0].tv_nsec == UTIME_NOW && times[1].tv_nsec == UTIME_NOW) { in qemu_utimensat() 138 if (times[0].tv_nsec == UTIME_NOW || times[1].tv_nsec == UTIME_NOW) { in qemu_utimensat() 141 if (times[0].tv_nsec == UTIME_OMIT || times[1].tv_nsec == UTIME_OMIT) { in qemu_utimensat() 146 if (times[i].tv_nsec == UTIME_NOW) { in qemu_utimensat() 149 } else if (times[i].tv_nsec == UTIME_OMIT) { in qemu_utimensat() 154 tv[i].tv_usec = times[i].tv_nsec / 1000; in qemu_utimensat()
|
D | qemu-thread.c | 63 ts->tv_nsec = (ts->tv_nsec + ((long)msecs % 1000) * 1000000); in timespec_add_ms() 64 if (ts->tv_nsec >= 1000000000) { in timespec_add_ms() 65 ts->tv_nsec -= 1000000000; in timespec_add_ms()
|
/external/kernel-headers/original/linux/ |
D | time.h | 14 long tv_nsec; /* nanoseconds */ member 41 return (a->tv_sec == b->tv_sec) && (a->tv_nsec == b->tv_nsec); in timespec_equal() 55 return lhs->tv_nsec - rhs->tv_nsec; in timespec_compare() 81 lhs.tv_nsec - rhs.tv_nsec); in timespec_sub() 89 (((ts)->tv_sec >= 0) && (((unsigned long) (ts)->tv_nsec) < NSEC_PER_SEC)) 131 return ((s64) ts->tv_sec * NSEC_PER_SEC) + ts->tv_nsec; in timespec_to_ns() 170 ns += a->tv_nsec; in timespec_add_ns() 175 a->tv_nsec = ns; in timespec_add_ns()
|
D | ktime.h | 102 return ktime_set(ts.tv_sec, ts.tv_nsec); in timespec_to_ktime() 205 .nsec = (s32)ts.tv_nsec } }; in timespec_to_ktime() 229 .tv_nsec = (long) kt.tv.nsec }; in ktime_to_timespec()
|
/external/skia/bench/ |
D | BenchSysTimer_posix.cpp | 17 if ((end_clock.tv_nsec - start_clock.tv_nsec) < 0) { in intervalInMSec() 19 duration_clock += (1000000000 + end_clock.tv_nsec - start_clock.tv_nsec) in intervalInMSec() 23 duration_clock += (end_clock.tv_nsec - start_clock.tv_nsec) / 1000000.0; in intervalInMSec()
|
/external/webrtc/src/system_wrappers/source/ |
D | event_posix.cc | 154 tEnd.tv_nsec += (timeout - (timeout / 1000) * 1000) * E6; in Wait() 156 if (tEnd.tv_nsec >= E9) in Wait() 159 tEnd.tv_nsec -= E9; in Wait() 269 tEnd.tv_nsec = _tCreate.tv_nsec + (time - (time/1000)*1000)*E6; in Process() 271 if ( tEnd.tv_nsec >= E9 ) in Process() 274 tEnd.tv_nsec -= E9; in Process()
|
D | condition_variable_posix.cc | 120 ts.tv_nsec = tv.tv_usec * MICROSECONDS_PER_MILLISECOND; in SleepCS() 124 ts.tv_nsec += (maxTimeInMS - ((maxTimeInMS / MILLISECONDS_PER_SECOND)* in SleepCS() 127 if (ts.tv_nsec >= NANOSECONDS_PER_SECOND) in SleepCS() 129 ts.tv_sec += ts.tv_nsec / NANOSECONDS_PER_SECOND; in SleepCS() 130 ts.tv_nsec %= NANOSECONDS_PER_SECOND; in SleepCS()
|
/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() 108 elapsed.tv_nsec = (ms%1000)*1000000; in SDL_Delay() 117 tv.tv_nsec = elapsed.tv_nsec; in SDL_Delay()
|
/external/libnfc-nci/halimpl/bcm2079x/adaptation/ |
D | CondVar.cpp | 110 long ns = absoluteTime.tv_nsec + ((millisec % 1000) * 1000000); in wait() 114 absoluteTime.tv_nsec = ns - 1000000000; in wait() 117 absoluteTime.tv_nsec = ns; in wait()
|
/external/chromium/base/synchronization/ |
D | condition_variable_posix.cc | 51 abstime.tv_nsec = (now.tv_usec + (usecs % Time::kMicrosecondsPerSecond)) * in TimedWait() 53 abstime.tv_sec += abstime.tv_nsec / Time::kNanosecondsPerSecond; in TimedWait() 54 abstime.tv_nsec %= Time::kNanosecondsPerSecond; in TimedWait()
|
/external/qemu/distrib/sdl-1.2.15/src/thread/pthread/ |
D | SDL_syscond.c | 112 abstime.tv_nsec = (delta.tv_usec + (ms%1000) * 1000) * 1000; in SDL_CondWaitTimeout() 113 if ( abstime.tv_nsec > 1000000000 ) { in SDL_CondWaitTimeout() 115 abstime.tv_nsec -= 1000000000; in SDL_CondWaitTimeout()
|
/external/qemu/distrib/sdl-1.2.15/src/thread/riscos/ |
D | SDL_syscond.c | 116 abstime.tv_nsec = (delta.tv_usec + (ms%1000) * 1000) * 1000; in SDL_CondWaitTimeout() 117 if ( abstime.tv_nsec > 1000000000 ) { in SDL_CondWaitTimeout() 119 abstime.tv_nsec -= 1000000000; in SDL_CondWaitTimeout()
|
/external/llvm/lib/Support/ |
D | LockFileManager.cpp | 175 Interval.tv_nsec = 1000000; in waitForUnlock() 211 Interval.tv_nsec *= 2; in waitForUnlock() 212 if (Interval.tv_nsec >= 1000000000) { in waitForUnlock() 214 Interval.tv_nsec -= 1000000000; in waitForUnlock()
|
/external/valgrind/main/helgrind/tests/ |
D | cond_timedwait_invalid.c | 17 abstime.tv_nsec = 0; in main() 19 abstime.tv_nsec += 1000000000; in main()
|
/external/chromium/third_party/libjingle/source/talk/base/ |
D | event.cc | 165 ts.tv_nsec = tv.tv_usec * 1000 + (cms % 1000) * 1000000; 168 if (ts.tv_nsec >= 1000000000) { 170 ts.tv_nsec -= 1000000000;
|
/external/libnfc-nxp/Linux_x86/ |
D | phOsalNfc_Timer.c | 224 its.it_interval.tv_nsec = 0; in phOsalNfc_Timer_Start() 226 its.it_value.tv_nsec = 1000000 * (RegTimeCnt % 1000); in phOsalNfc_Timer_Start() 227 if(its.it_value.tv_sec == 0 && its.it_value.tv_nsec == 0) in phOsalNfc_Timer_Start() 230 its.it_value.tv_nsec = 1; in phOsalNfc_Timer_Start()
|
D | phDal4Nfc_uart.c | 273 delta.tv_usec = (timeout.tv_nsec - now.tv_nsec) / (long)1000; in timeval_remaining() 316 timeout.tv_nsec += 100000000; in phDal4Nfc_uart_read() 317 if (timeout.tv_nsec > 1000000000) { in phDal4Nfc_uart_read() 319 timeout.tv_nsec -= 1000000000; in phDal4Nfc_uart_read()
|
/external/bluetooth/bluedroid/hci/src/ |
D | lpm.c | 155 ts.it_value.tv_nsec = 1000*(bt_lpm_cb.timeout_ms%1000); in lpm_start_transport_idle_timer() 157 ts.it_interval.tv_nsec = 0; in lpm_start_transport_idle_timer() 182 ts.it_value.tv_nsec = 0; in lpm_stop_transport_idle_timer() 184 ts.it_interval.tv_nsec = 0; in lpm_stop_transport_idle_timer()
|
/external/bluetooth/bluedroid/gki/ulinux/ |
D | gki_ulinux.c | 662 delta_ns = current.tv_nsec - previous.tv_nsec; in timer_thread() 686 timeout.tv_nsec = (GKI_TICKS_TO_MS(1) * 1000000) * 0.1; in timer_thread() 698 timeout.tv_nsec = timeout_ns; in timer_thread() 824 delay.tv_nsec = 1000 * 1000 * (LINUX_SEC % 1000); in GKI_run() 933 abstime.tv_nsec += nano_sec; in GKI_wait() 934 if (abstime.tv_nsec > NSEC_PER_SEC) in GKI_wait() 936 abstime.tv_sec += (abstime.tv_nsec / NSEC_PER_SEC); in GKI_wait() 937 abstime.tv_nsec = abstime.tv_nsec % NSEC_PER_SEC; in GKI_wait() 1015 delay.tv_nsec = 1000 * 1000 * (timeout%1000); in GKI_delay()
|
/external/chromium/base/ |
D | time_unittest.cc | 193 EXPECT_EQ(result.tv_nsec, 0); in TEST() 197 EXPECT_EQ(result.tv_nsec, 0); in TEST() 201 EXPECT_EQ(result.tv_nsec, 1000); in TEST() 206 EXPECT_EQ(result.tv_nsec, 1000); in TEST()
|
/external/valgrind/main/memcheck/tests/linux/ |
D | timerfd-syscall.c | 114 return 1000000ULL * tp.tv_sec + tp.tv_nsec / 1000; in getustime() 127 tmr->tv_nsec = (long) (1000ULL * (ustime % 1000000ULL)); in set_timespec() 258 tmr.it_value.tv_sec + 1e-9 * tmr.it_value.tv_nsec, in main() 259 tmr.it_interval.tv_sec + 1e-9 * tmr.it_interval.tv_nsec); in main()
|
/external/eigen/bench/btl/generic_bench/timers/ |
D | portable_timer.hh | 113 m_start_time = double(ts.tv_sec) + 1e-9 * double(ts.tv_nsec); in start() 121 m_stop_time = double(ts.tv_sec) + 1e-9 * double(ts.tv_nsec); in stop()
|
/external/valgrind/main/none/tests/ |
D | sem.c | 44 ts.tv_nsec = 1000000; in main() 71 ts.tv_nsec = 1000; in main()
|