Home
last modified time | relevance | path

Searched refs:tv_nsec (Results 1 – 25 of 142) sorted by relevance

123456

/external/compiler-rt/test/sanitizer_common/TestCases/Linux/
Dtimerfd.cc16 its.it_value.tv_nsec = 1000000; in main()
18 its.it_interval.tv_nsec = its.it_value.tv_nsec; in main()
27 assert(its2.it_interval.tv_nsec == its.it_interval.tv_nsec); in main()
29 assert(its2.it_value.tv_nsec <= its.it_value.tv_nsec); in main()
35 assert(its3.it_interval.tv_nsec == its.it_interval.tv_nsec); in main()
37 assert(its3.it_value.tv_nsec <= its.it_value.tv_nsec); in main()
/external/skia/tools/timer/
DSysTimer_posix.cpp12 if ((end_clock.tv_nsec - start_clock.tv_nsec) < 0) { in interval_in_ms()
14 duration_clock += (1000000000 + end_clock.tv_nsec - start_clock.tv_nsec) / 1000000.0; in interval_in_ms()
17 duration_clock += (end_clock.tv_nsec - start_clock.tv_nsec) / 1000000.0; in interval_in_ms()
/external/v8/src/base/platform/
Dtime.cc102 DCHECK_GE(ts.tv_nsec, 0); in FromMachTimespec()
103 DCHECK_LT(ts.tv_nsec, in FromMachTimespec()
106 ts.tv_nsec / Time::kNanosecondsPerMicrosecond); in FromMachTimespec()
114 ts.tv_nsec = (delta_ % Time::kMicrosecondsPerSecond) * in ToMachTimespec()
125 DCHECK_GE(ts.tv_nsec, 0); in FromTimespec()
126 DCHECK_LT(ts.tv_nsec, in FromTimespec()
129 ts.tv_nsec / Time::kNanosecondsPerMicrosecond); in FromTimespec()
136 ts.tv_nsec = (delta_ % Time::kMicrosecondsPerSecond) * in ToTimespec()
268 DCHECK(ts.tv_nsec >= 0); in FromTimespec()
269 DCHECK(ts.tv_nsec < static_cast<long>(kNanosecondsPerSecond)); // NOLINT in FromTimespec()
[all …]
/external/toybox/toys/posix/
Dtouch.c42 ts[0].tv_nsec = UTIME_NOW;
64 sscanf(s, ".%lu%n", &ts->tv_nsec, &len);
81 sscanf(s += len, "%lu%n", &ts->tv_nsec, &len);
87 if (ts->tv_nsec > 999999999) s = 0;
88 else while (len++ < 10) ts->tv_nsec *= 10;
109 if (i && i!=(FLAG_a|FLAG_m)) ts[i==FLAG_m].tv_nsec = UTIME_OMIT;
/external/lldb/tools/debugserver/source/
DDNBTimer.h132 ts->tv_nsec += nsec_offset;
134 ts->tv_sec = ts->tv_sec + ts->tv_nsec / 1000000000 + sec_offset;
136 ts->tv_nsec = ts->tv_nsec % 1000000000;
149 if (now.tv_nsec > ts.tv_nsec) in TimeOfDayLaterThan()
/external/webrtc/src/system_wrappers/source/
Devent_posix.cc154 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()
Dcondition_variable_posix.cc120 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/libnfc-nci/halimpl/bcm2079x/adaptation/
DCondVar.cpp114 long ns = absoluteTime.tv_nsec + ((millisec % 1000) * 1000000); in wait()
118 absoluteTime.tv_nsec = ns - 1000000000; in wait()
121 absoluteTime.tv_nsec = ns; in wait()
/external/fio/os/
Dos-mac.h80 tv.it_interval.tv_usec = value->it_interval.tv_nsec / 1000; in timer_settime()
83 tv.it_value.tv_usec = value->it_value.tv_nsec / 1000; in timer_settime()
96 ovalue->it_interval.tv_nsec = tv_out.it_interval.tv_usec * 1000; in timer_settime()
98 ovalue->it_value.tv_nsec = tv_out.it_value.tv_usec * 1000; in timer_settime()
/external/libcxx/src/
Dcondition_variable.cpp67 ts.tv_nsec = static_cast<decltype(ts.tv_nsec)>((d - s).count()); in __do_timed_wait()
72 ts.tv_nsec = giga::num - 1; in __do_timed_wait()
/external/deqp/framework/delibs/deutil/
DdeTimer.c225 tspec.it_value.tv_nsec = (milliseconds % 1000) * 1000; in deTimer_scheduleSingle()
227 tspec.it_interval.tv_nsec = 0; in deTimer_scheduleSingle()
246 tspec.it_value.tv_nsec = (milliseconds % 1000) * 1000; in deTimer_scheduleInterval()
248 tspec.it_interval.tv_nsec = tspec.it_value.tv_nsec; in deTimer_scheduleInterval()
264 tspec.it_value.tv_nsec = 0; in deTimer_disable()
266 tspec.it_interval.tv_nsec = 0; in deTimer_disable()
DdeClock.c52 return (deUint64)currTime.tv_sec*1000000 + ((deUint64)currTime.tv_nsec/1000); in deGetMicroseconds()
59 return (deUint64)currTime.tv_sec*1000000 + ((deUint64)currTime.tv_nsec/1000); in deGetMicroseconds()
/external/android-clat/
Dclatd_microbenchmark.c129 if (end.tv_nsec < tv1.tv_nsec) { in timedelta()
131 end.tv_nsec += SEC_TO_NANOSEC; in timedelta()
134 seconds += (((double) (end.tv_nsec - tv1.tv_nsec)) / SEC_TO_NANOSEC); in timedelta()
/external/llvm/lib/Support/
DLockFileManager.cpp185 Interval.tv_nsec = 1000000; in waitForUnlock()
218 Interval.tv_nsec *= 2; in waitForUnlock()
219 if (Interval.tv_nsec >= 1000000000) { in waitForUnlock()
221 Interval.tv_nsec -= 1000000000; in waitForUnlock()
/external/libnfc-nxp/Linux_x86/
DphDal4Nfc_uart.c273 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()
DphOsalNfc_Timer.c224 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()
/external/valgrind/helgrind/tests/
Dcond_timedwait_invalid.c17 abstime.tv_nsec = 0; in main()
19 abstime.tv_nsec += 1000000000; in main()
/external/vboot_reference/tests/
Dtimer_utils.c18 (uint64_t) ct->start_time.tv_nsec); in GetDurationMsecs()
20 (uint64_t) ct->end_time.tv_nsec); in GetDurationMsecs()
/external/libnfc-nci/halimpl/pn54x/tml/
DphOsalNfc_Timer.c150 its.it_interval.tv_nsec = 0; in phOsalNfc_Timer_Start()
152 its.it_value.tv_nsec = 1000000 * (dwRegTimeCnt % 1000); in phOsalNfc_Timer_Start()
153 if(its.it_value.tv_sec == 0 && its.it_value.tv_nsec == 0) in phOsalNfc_Timer_Start()
156 its.it_value.tv_nsec = 1; in phOsalNfc_Timer_Start()
/external/compiler-rt/test/tsan/
Dcond_version.c37 sleep = (u64)ts2.tv_sec * 1000000000 + ts2.tv_nsec - in main()
38 ((u64)ts0.tv_sec * 1000000000 + ts0.tv_nsec); in main()
Dbench.h40 (tp1.tv_sec * 1000000000ULL + tp1.tv_nsec) - in main()
41 (tp0.tv_sec * 1000000000ULL + tp0.tv_nsec); in main()
/external/fio/engines/
Dposixaio.c38 ts->tv_nsec = tv.tv_usec * 1000; in fill_timespec()
52 nsec = now.tv_nsec - t->tv_nsec; in ts_utime_since_now()
149 usec = (t->tv_sec * 1000000) + (t->tv_nsec / 1000); in fio_posixaio_getevents()
/external/valgrind/memcheck/tests/linux/
Dtimerfd-syscall.c114 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/drm_hwcomposer/
Dvsyncworker.cpp125 kOneSecondNs / refresh, vsync.tv_sec * kOneSecondNs + vsync.tv_nsec); in SyntheticWaitVBlank()
127 vsync.tv_nsec = phased_timestamp - (vsync.tv_sec * kOneSecondNs); in SyntheticWaitVBlank()
134 *timestamp = (int64_t)vsync.tv_sec * kOneSecondNs + (int64_t)vsync.tv_nsec; in SyntheticWaitVBlank()
/external/eigen/bench/btl/generic_bench/timers/
Dportable_timer.hh113 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()

123456