Lines Matching refs:nsec
223 long nsec = newTs.tv_nsec - mOldTs.tv_nsec;
224 ALOGE_IF(sec < 0 || (sec == 0 && nsec < 0),
227 if (nsec < 0) {
229 nsec += 1000000000;
240 mMeasuredWarmupTs.tv_nsec += nsec;
246 if (mWarmupNsMin <= nsec && nsec <= mWarmupNsMax) {
247 ALOGV("warmup cycle %d in range: %.03f ms", mWarmupCycles, nsec * 1e-9);
250 ALOGV("warmup cycle %d out of range: %.03f ms", mWarmupCycles, nsec * 1e-9);
262 if (sec > 0 || nsec > mUnderrunNs) {
266 (int) sec, nsec / 1000000L);
269 } else if (nsec < mOverrunNs) {
275 (int) sec, nsec / 1000000L);
284 mSleepNs = mForceNs - nsec;
300 uint32_t monotonicNs = nsec;
311 nsec = newLoad.tv_nsec - mOldLoad.tv_nsec;
312 if (nsec < 0) {
314 nsec += 1000000000;
316 loadNs = nsec;