Searched refs:NS_PER_SEC (Results 1 – 14 of 14) sorted by relevance
/system/core/liblog/ |
D | log_time.cpp | 105 unsigned long mul = NS_PER_SEC; in strptime() 145 this->tv_nsec = NS_PER_SEC + this->tv_nsec - T.tv_nsec; in operator -=() 156 if (this->tv_nsec >= NS_PER_SEC) { in operator +=() 157 this->tv_nsec -= NS_PER_SEC; in operator +=() 173 this->tv_nsec = NS_PER_SEC + this->tv_nsec - T.tv_nsec; in operator -=() 184 if (this->tv_nsec >= NS_PER_SEC) { in operator +=() 185 this->tv_nsec -= NS_PER_SEC; in operator +=()
|
D | logprint.c | 986 multiplier = NS_PER_SEC; in readSeconds() 998 if (left->tv_nsec >= (long)NS_PER_SEC) { in sumTimespec() 999 left->tv_nsec -= NS_PER_SEC; in sumTimespec() 1012 result->tv_nsec += NS_PER_SEC; in subTimespec() 1020 return (long long)now->tv_sec * NS_PER_SEC + now->tv_nsec; in nsecTimespec() 1233 convert.tv_sec += crun / (long long)NS_PER_SEC; in convertMonotonic() 1235 convert.tv_nsec -= (-crun) % NS_PER_SEC; in convertMonotonic() 1237 convert.tv_nsec += NS_PER_SEC; in convertMonotonic() 1241 convert.tv_nsec += crun % NS_PER_SEC; in convertMonotonic() 1242 if (convert.tv_nsec >= (long)NS_PER_SEC) { in convertMonotonic() [all …]
|
D | pmsg_reader.c | 187 || (buf.l.realtime.tv_nsec >= NS_PER_SEC)) { in pmsgRead()
|
/system/core/include/log/ |
D | log_read.h | 24 #define NS_PER_SEC 1000000000ULL macro 152 return static_cast<uint64_t>(tv_sec) * NS_PER_SEC + tv_nsec; in nsec()
|
D | logger.h | 93 #define NS_PER_SEC 1000000000ULL macro 136 return static_cast<uint64_t>(entry.sec) * NS_PER_SEC + entry.nsec; in nsec()
|
/system/extras/micro_bench/ |
D | micro_bench.cpp | 42 #define NS_PER_SEC 1000000000 macro 91 return static_cast<uint64_t>(t.tv_sec) * NS_PER_SEC + t.tv_nsec; in nanoTime() 136 return ((size/1024.0) * copies) / ((double)time_ns/NS_PER_SEC); in computeAverage() 153 name, copies, size, (double)time_ns/NS_PER_SEC, avg/1024.0); in printIter() 182 return ((size/1024.0) * copies * num_buffers) / ((double)time_ns/NS_PER_SEC); in computeColdAverage() 187 name, copies, num_buffers, size, (double)time_ns/NS_PER_SEC, avg/1024.0); in printColdIter() 384 (double)time_ns/NS_PER_SEC, in benchmarkSleep()
|
/system/extras/memtrack/ |
D | memtrack.cpp | 351 nsecs = (unsigned long long)t.tv_sec*NS_PER_SEC + t.tv_nsec; in main() 357 nsecs = ((unsigned long long)t.tv_sec*NS_PER_SEC + t.tv_nsec) - nsecs; in main() 358 printf("Scan Time %0.4f\n", ((double)nsecs)/NS_PER_SEC); in main()
|
D | memtrack.h | 27 #define NS_PER_SEC 1000000000LL macro
|
/system/core/logd/ |
D | LogTimes.cpp | 46 mTimeout.tv_sec = timeout / NS_PER_SEC; in LogTimeEntry() 47 mTimeout.tv_nsec = timeout % NS_PER_SEC; in LogTimeEntry()
|
D | LogReader.cpp | 78 timeout = atol(cp + sizeof(_timeout) - 1) * NS_PER_SEC + in onDataAvailable()
|
D | LogKlog.cpp | 377 unsigned long multiplier = NS_PER_SEC; in sniffTime()
|
D | LogBuffer.cpp | 426 - (EXPIRE_RATELIMIT * NS_PER_SEC); in clear()
|
/system/core/libbacktrace/ |
D | backtrace_test.cpp | 59 #define NS_PER_SEC 1000000000ULL macro 91 return static_cast<uint64_t>(t.tv_sec * NS_PER_SEC + t.tv_nsec); in NanoTime() 111 if ((NanoTime() - start) > NS_PER_SEC) { in WaitForStop() 216 } while ((NanoTime() - start) < seconds * NS_PER_SEC); in WaitForNonZero() 335 } while (!verified && (NanoTime() - start) <= 5 * NS_PER_SEC); in VerifyProcTest() 453 ((NanoTime() - start) <= 5 * NS_PER_SEC)); in TEST() 1109 if ((NanoTime() - start) > 5 * NS_PER_SEC) { in TEST() 1284 if ((NanoTime() - start) > 5 * NS_PER_SEC) { in TEST() 1401 if ((NanoTime() - start) > 5 * NS_PER_SEC) { in TEST()
|
/system/core/logcat/ |
D | logcat.cpp | 475 log_time modulo(0, NS_PER_SEC); in lastLogTime()
|