Searched refs:NS_PER_SEC (Results 1 – 17 of 17) 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 | 1237 multiplier = NS_PER_SEC; in readSeconds() 1248 if (left->tv_nsec >= (long)NS_PER_SEC) { in sumTimespec() 1249 left->tv_nsec -= NS_PER_SEC; in sumTimespec() 1261 result->tv_nsec += NS_PER_SEC; in subTimespec() 1268 return (long long)now->tv_sec * NS_PER_SEC + now->tv_nsec; in nsecTimespec() 1479 convert.tv_sec += crun / (long long)NS_PER_SEC; in convertMonotonic() 1481 convert.tv_nsec -= (-crun) % NS_PER_SEC; in convertMonotonic() 1483 convert.tv_nsec += NS_PER_SEC; in convertMonotonic() 1487 convert.tv_nsec += crun % NS_PER_SEC; in convertMonotonic() 1488 if (convert.tv_nsec >= (long)NS_PER_SEC) { in convertMonotonic() [all …]
|
D | pmsg_reader.c | 189 (buf.l.id >= LOG_ID_MAX) || (buf.l.realtime.tv_nsec >= NS_PER_SEC) || in pmsgRead()
|
/system/core/libunwindstack/tests/ |
D | MemoryRemoteTest.cpp | 41 return static_cast<uint64_t>(t.tv_sec * NS_PER_SEC + t.tv_nsec); in NanoTime() 52 if ((NanoTime() - start) > 10 * NS_PER_SEC) { in Attach() 65 static constexpr size_t NS_PER_SEC = 1000000000ULL; member in MemoryRemoteTest
|
/system/core/liblog/include/log/ |
D | log_time.h | 24 #define NS_PER_SEC 1000000000ULL macro 149 return static_cast<uint64_t>(tv_sec) * NS_PER_SEC + tv_nsec; in nsec()
|
D | log_read.h | 174 return static_cast<uint64_t>(entry.sec) * NS_PER_SEC + entry.nsec; in nsec()
|
/system/core/liblog/include_vndk/log/ |
D | log_time.h | 24 #define NS_PER_SEC 1000000000ULL macro 149 return static_cast<uint64_t>(tv_sec) * NS_PER_SEC + tv_nsec; in nsec()
|
D | log_read.h | 174 return static_cast<uint64_t>(entry.sec) * NS_PER_SEC + entry.nsec; in nsec()
|
/system/extras/memtrack/ |
D | memtrack.cpp | 347 nsecs = (unsigned long long)t.tv_sec*NS_PER_SEC + t.tv_nsec; in main() 353 nsecs = ((unsigned long long)t.tv_sec*NS_PER_SEC + t.tv_nsec) - nsecs; in main() 354 printf("Scan Time %0.4f\n", ((double)nsecs)/NS_PER_SEC); in main()
|
D | memtrack.h | 27 #define NS_PER_SEC 1000000000LL macro
|
/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/core/logd/ |
D | LogTimes.cpp | 49 mTimeout.tv_sec = timeout / NS_PER_SEC; in LogTimeEntry() 50 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 | 340 unsigned long multiplier = NS_PER_SEC; in sniffTime()
|
D | LogBuffer.cpp | 149 (last->getRealTime().nsec() + 60 * NS_PER_SEC)) in identical()
|
/system/core/libbacktrace/ |
D | backtrace_test.cpp | 63 #define NS_PER_SEC 1000000000ULL macro 88 return static_cast<uint64_t>(t.tv_sec * NS_PER_SEC + t.tv_nsec); in NanoTime() 108 if ((NanoTime() - start) > NS_PER_SEC) { in WaitForStop() 225 } while ((NanoTime() - start) < seconds * NS_PER_SEC); in WaitForNonZero() 342 } while (!verified && (NanoTime() - start) <= 5 * NS_PER_SEC); in VerifyProcTest() 459 ((NanoTime() - start) <= 5 * NS_PER_SEC)); in TEST() 1097 if ((NanoTime() - start) > 5 * NS_PER_SEC) { in TEST() 1272 if ((NanoTime() - start) > 5 * NS_PER_SEC) { in TEST() 1389 if ((NanoTime() - start) > 5 * NS_PER_SEC) { in TEST() 1666 ASSERT_TRUE(NanoTime() - start < 5 * NS_PER_SEC) in UnwindThroughSignal() [all …]
|
/system/core/logcat/ |
D | logcat.cpp | 660 log_time modulo(0, NS_PER_SEC); in lastLogTime()
|