Home
last modified time | relevance | path

Searched refs:NS_PER_SEC (Results 1 – 17 of 17) sorted by relevance

/system/core/liblog/
Dlog_time.cpp105 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 +=()
Dlogprint.c1237 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 …]
Dpmsg_reader.c189 (buf.l.id >= LOG_ID_MAX) || (buf.l.realtime.tv_nsec >= NS_PER_SEC) || in pmsgRead()
/system/core/libunwindstack/tests/
DMemoryRemoteTest.cpp41 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/
Dlog_time.h24 #define NS_PER_SEC 1000000000ULL macro
149 return static_cast<uint64_t>(tv_sec) * NS_PER_SEC + tv_nsec; in nsec()
Dlog_read.h174 return static_cast<uint64_t>(entry.sec) * NS_PER_SEC + entry.nsec; in nsec()
/system/core/liblog/include_vndk/log/
Dlog_time.h24 #define NS_PER_SEC 1000000000ULL macro
149 return static_cast<uint64_t>(tv_sec) * NS_PER_SEC + tv_nsec; in nsec()
Dlog_read.h174 return static_cast<uint64_t>(entry.sec) * NS_PER_SEC + entry.nsec; in nsec()
/system/extras/memtrack/
Dmemtrack.cpp347 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()
Dmemtrack.h27 #define NS_PER_SEC 1000000000LL macro
/system/extras/micro_bench/
Dmicro_bench.cpp42 #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/
DLogTimes.cpp49 mTimeout.tv_sec = timeout / NS_PER_SEC; in LogTimeEntry()
50 mTimeout.tv_nsec = timeout % NS_PER_SEC; in LogTimeEntry()
DLogReader.cpp78 timeout = atol(cp + sizeof(_timeout) - 1) * NS_PER_SEC + in onDataAvailable()
DLogKlog.cpp340 unsigned long multiplier = NS_PER_SEC; in sniffTime()
DLogBuffer.cpp149 (last->getRealTime().nsec() + 60 * NS_PER_SEC)) in identical()
/system/core/libbacktrace/
Dbacktrace_test.cpp63 #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/
Dlogcat.cpp660 log_time modulo(0, NS_PER_SEC); in lastLogTime()