Home
last modified time | relevance | path

Searched refs:NS_PER_SEC (Results 1 – 18 of 18) 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.cpp1254 multiplier = NS_PER_SEC; in readSeconds()
1264 if (left->tv_nsec >= (long)NS_PER_SEC) { in sumTimespec()
1265 left->tv_nsec -= NS_PER_SEC; in sumTimespec()
1276 result->tv_nsec += NS_PER_SEC; in subTimespec()
1283 return (long long)now->tv_sec * NS_PER_SEC + now->tv_nsec; in nsecTimespec()
1492 convert.tv_sec += crun / (long long)NS_PER_SEC; in convertMonotonic()
1494 convert.tv_nsec -= (-crun) % NS_PER_SEC; in convertMonotonic()
1496 convert.tv_nsec += NS_PER_SEC; in convertMonotonic()
1500 convert.tv_nsec += crun % NS_PER_SEC; in convertMonotonic()
1501 if (convert.tv_nsec >= (long)NS_PER_SEC) { in convertMonotonic()
[all …]
Dpmsg_reader.cpp185 (buf.l.realtime.tv_nsec >= NS_PER_SEC) || in pmsgRead()
/system/core/liblog/include_vndk/log/
Dlog_time.h23 #ifndef NS_PER_SEC
24 #define NS_PER_SEC 1000000000ULL macro
Dlog_read.h170 return static_cast<uint64_t>(entry.sec) * NS_PER_SEC + entry.nsec; in nsec()
/system/core/liblog/include/log/
Dlog_time.h23 #define NS_PER_SEC 1000000000ULL macro
146 return static_cast<uint64_t>(tv_sec) * NS_PER_SEC + tv_nsec; in nsec()
150 tv_nsec / (NS_PER_SEC / US_PER_SEC); in usec()
154 tv_nsec / (NS_PER_SEC / MS_PER_SEC); in msec()
Dlog_read.h170 return static_cast<uint64_t>(entry.sec) * NS_PER_SEC + entry.nsec; in nsec()
/system/extras/memtrack/
Dmemtrack.h27 #ifndef NS_PER_SEC
28 #define NS_PER_SEC 1000000000ULL macro
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()
/system/core/logd/
DLogTimes.cpp44 mTimeout.tv_sec = timeout / NS_PER_SEC; in LogTimeEntry()
45 mTimeout.tv_nsec = timeout % NS_PER_SEC; in LogTimeEntry()
DLogReader.cpp92 timeout = atol(cp + sizeof(_timeout) - 1) * NS_PER_SEC + in onDataAvailable()
DLogKlog.cpp339 unsigned long multiplier = NS_PER_SEC; in sniffTime()
DLogBuffer.cpp153 (last->getRealTime().nsec() + 60 * NS_PER_SEC)) in identical()
/system/core/libbacktrace/
Dbacktrace_test.cpp66 #define NS_PER_SEC 1000000000ULL macro
120 return static_cast<uint64_t>(t.tv_sec * NS_PER_SEC + t.tv_nsec); in NanoTime()
140 if ((NanoTime() - start) > NS_PER_SEC) { in WaitForStop()
268 } while ((NanoTime() - start) < seconds * NS_PER_SEC); in WaitForNonZero()
420 } while (!verified && (NanoTime() - start) <= 5 * NS_PER_SEC); in VerifyProcTest()
528 ((NanoTime() - start) <= 5 * NS_PER_SEC)); in TEST_F()
1178 if ((NanoTime() - start) > 5 * NS_PER_SEC) { in TEST_F()
1347 if ((NanoTime() - start) > 5 * NS_PER_SEC) { in TEST_F()
1467 if ((NanoTime() - start) > 5 * NS_PER_SEC) { in TEST_F()
1742 ASSERT_TRUE(NanoTime() - start < 5 * NS_PER_SEC) in UnwindThroughSignal()
[all …]
/system/core/libunwindstack/tests/
DMemoryRemoteTest.cpp54 static constexpr size_t NS_PER_SEC = 1000000000ULL; member in unwindstack::MemoryRemoteTest
/system/core/lmkd/
Dlmkd.c96 #define NS_PER_MS (NS_PER_SEC / MS_PER_SEC)
1064 mem_st->process_start_time_ns = starttime * (NS_PER_SEC / sysconf(_SC_CLK_TCK)); in memory_stat_from_procfs()
/system/core/liblog/tests/
Dliblog_benchmark.cpp732 state.SetIterationTime((end - start) / (double)NS_PER_SEC); in BM_log_latency()
/system/core/logcat/
Dlogcat.cpp655 log_time modulo(0, NS_PER_SEC); in lastLogTime()