/external/lldb/source/Utility/ |
TimeSpecTimeout.h | 24 m_timespec.tv_nsec = 0;
|
/external/webrtc/src/system_wrappers/source/ |
sleep.cc | 31 short_wait.tv_nsec = (msecs % 1000) * 1000 * 1000;
|
condition_variable_posix.cc | 120 ts.tv_nsec = tv.tv_usec * MICROSECONDS_PER_MILLISECOND; 124 ts.tv_nsec += (maxTimeInMS - ((maxTimeInMS / MILLISECONDS_PER_SECOND)* 127 if (ts.tv_nsec >= NANOSECONDS_PER_SECOND) 129 ts.tv_sec += ts.tv_nsec / NANOSECONDS_PER_SECOND; 130 ts.tv_nsec %= NANOSECONDS_PER_SECOND;
|
/frameworks/av/services/audioflinger/ |
FastThreadState.cpp | 42 mMeasuredWarmupTs.tv_nsec = 0;
|
FastThread.cpp | 73 oldTs.tv_nsec = 0; 75 measuredWarmupTs.tv_nsec = 0; 169 measuredWarmupTs.tv_nsec = 0; 213 long nsec = newTs.tv_nsec - oldTs.tv_nsec; 216 oldTs.tv_sec, oldTs.tv_nsec, newTs.tv_sec, newTs.tv_nsec); 229 measuredWarmupTs.tv_nsec += nsec; 230 if (measuredWarmupTs.tv_nsec >= 1000000000) { 232 measuredWarmupTs.tv_nsec -= 1000000000 [all...] |
/system/extras/tests/lib/testUtil/ |
testUtil.c | 51 rv += (double) val->tv_nsec / nSecsPerSec; 73 rv.tv_nsec = (amt - rv.tv_sec) * nSecsPerSec; 75 while ((unsigned) rv.tv_nsec >= nSecsPerSec) { 76 rv.tv_nsec -= nSecsPerSec; 109 assert(first->tv_nsec >= 0 && first->tv_nsec < nSecsPerSec); 110 assert(second->tv_nsec >= 0 && second->tv_nsec < nSecsPerSec); 112 if (second->tv_nsec >= first->tv_nsec) { [all...] |
/external/chromium_org/third_party/webrtc/system_wrappers/source/ |
condition_variable_posix.cc | 103 ts.tv_nsec = tv.tv_usec * MICROSECONDS_PER_MILLISECOND; 107 ts.tv_nsec += 112 if (ts.tv_nsec >= NANOSECONDS_PER_SECOND) { 113 ts.tv_sec += ts.tv_nsec / NANOSECONDS_PER_SECOND; 114 ts.tv_nsec %= NANOSECONDS_PER_SECOND;
|
/system/core/include/utils/ |
Condition.h | 112 ts.tv_nsec = reltime%1000000000; 123 ts.tv_nsec= t.tv_usec*1000; 126 ts.tv_nsec+= reltime%1000000000; 127 if (ts.tv_nsec >= 1000000000) { 128 ts.tv_nsec -= 1000000000;
|
/development/perftests/panorama/ |
benchmark.cpp | 107 (t3.tv_sec - t1.tv_sec) + (t3.tv_nsec - t1.tv_nsec)/1e9; 109 (t2.tv_sec - t1.tv_sec) + (t2.tv_nsec - t1.tv_nsec)/1e9; 111 (t3.tv_sec - t2.tv_sec) + (t3.tv_nsec - t2.tv_nsec)/1e9;
|
/external/lldb/tools/debugserver/source/ |
DNBTimer.h | 132 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)
|
/system/core/toolbox/ |
touch.c | 48 specified_time.tv_nsec = UTIME_NOW; 66 specified_time.tv_nsec = 0; 98 times[0].tv_nsec = UTIME_OMIT; 103 times[1].tv_nsec = UTIME_OMIT; 107 fprintf(stderr, "times[0].tv_sec = %ld, times[0].tv_nsec = %ld\n", times[0].tv_sec, times[0].tv_nsec); 108 fprintf(stderr, "times[1].tv_sec = %ld, times[1].tv_nsec = %ld\n", times[1].tv_sec, times[1].tv_nsec);
|
/cts/suite/audio_quality/lib/src/ |
Semaphore.cpp | 59 int nanoTotal = timeOld.tv_nsec + nanoSecToGo; 66 timeNew.tv_nsec = nanoTotal; 68 // timeOld.tv_sec, timeOld.tv_nsec, timeNew.tv_sec, timeNew.tv_nsec, timeInMSec);
|
/external/compiler-rt/test/tsan/ |
cond_version.c | 37 sleep = (u64)ts2.tv_sec * 1000000000 + ts2.tv_nsec - 38 ((u64)ts0.tv_sec * 1000000000 + ts0.tv_nsec);
|
/bionic/tests/ |
sys_stat_test.cpp | 35 times[0].tv_nsec = 0; 37 times[1].tv_nsec = 0; 51 times[0].tv_nsec = 0; 53 times[1].tv_nsec = 0;
|
/external/chromium_org/third_party/tcmalloc/chromium/src/base/ |
spinlock_posix-inl.h | 52 tm.tv_nsec = base::internal::SuggestedDelayNS(loop);
|
/external/chromium_org/third_party/tcmalloc/vendor/src/base/ |
spinlock_posix-inl.h | 52 tm.tv_nsec = base::internal::SuggestedDelayNS(loop);
|
spinlock_linux-inl.h | 79 tm.tv_nsec = base::internal::SuggestedDelayNS(loop); 81 tm.tv_nsec = 2000001; // above 2ms so linux 2.4 doesn't spin 84 tm.tv_nsec *= 16; // increase the delay; we expect explicit wakeups
|
/external/chromium_org/third_party/webrtc/base/ |
event.cc | 94 ts.tv_nsec = (cms % 1000) * 1000000; 100 ts.tv_nsec = tv.tv_usec * 1000 + (cms % 1000) * 1000000; 103 if (ts.tv_nsec >= 1000000000) { 105 ts.tv_nsec -= 1000000000;
|
/external/jemalloc/test/include/test/ |
mq.h | 85 timeout.tv_nsec = 1; \ 93 timeout.tv_nsec <<= 1; \ 94 if (timeout.tv_nsec >= 1000*1000*1000) { \ 96 timeout.tv_nsec = 0; \
|
/external/valgrind/main/memcheck/tests/ |
post-syscall.c | 24 req.tv_nsec = 0;
|
/external/valgrind/main/perf/ |
sarp.c | 36 req.tv_nsec = 100*1000*1000; // 0.1s
|
/external/libcxx/src/ |
condition_variable.cpp | 63 ts.tv_nsec = static_cast<decltype(ts.tv_nsec)>((d - s).count()); 68 ts.tv_nsec = giga::num - 1;
|
/external/libnfc-nci/halimpl/bcm2079x/adaptation/ |
CondVar.cpp | 113 long ns = absoluteTime.tv_nsec + ((millisec % 1000) * 1000000); 117 absoluteTime.tv_nsec = ns - 1000000000; 120 absoluteTime.tv_nsec = ns;
|
/packages/apps/Nfc/nci/jni/ |
CondVar.cpp | 111 long ns = absoluteTime.tv_nsec + ((millisec % 1000) * 1000000); 115 absoluteTime.tv_nsec = ns - 1000000000; 118 absoluteTime.tv_nsec = ns;
|
/external/qemu/util/ |
oslib-posix.c | 230 if (times[0].tv_nsec == UTIME_OMIT && times[1].tv_nsec == UTIME_OMIT) { 233 if (times[0].tv_nsec == UTIME_NOW && times[1].tv_nsec == UTIME_NOW) { 238 if (times[0].tv_nsec == UTIME_NOW || times[1].tv_nsec == UTIME_NOW) { 241 if (times[0].tv_nsec == UTIME_OMIT || times[1].tv_nsec == UTIME_OMIT) { 246 if (times[i].tv_nsec == UTIME_NOW) { 249 } else if (times[i].tv_nsec == UTIME_OMIT) [all...] |