Home
last modified time | relevance | path

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

/system/core/liblog/include/log/
Dlog_time.h23 #define NS_PER_SEC 1000000000ULL macro
111 this->tv_nsec = NS_PER_SEC + this->tv_nsec - T.tv_nsec;
125 if (this->tv_nsec >= NS_PER_SEC) {
126 this->tv_nsec -= NS_PER_SEC;
139 return static_cast<uint64_t>(tv_sec) * NS_PER_SEC + tv_nsec; in nsec()
143 tv_nsec / (NS_PER_SEC / US_PER_SEC); in usec()
147 tv_nsec / (NS_PER_SEC / MS_PER_SEC); in msec()
Dlog_read.h64 return static_cast<uint64_t>(entry.sec) * NS_PER_SEC + entry.nsec; in nsec()
/system/core/liblog/include_vndk/log/
Dlog_time.h23 #ifndef NS_PER_SEC
24 #define NS_PER_SEC 1000000000ULL macro
Dlog_read.h64 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/liblog/
Dlogprint.cpp1162 multiplier = NS_PER_SEC; in readSeconds()
1172 if (left->tv_nsec >= (long)NS_PER_SEC) { in sumTimespec()
1173 left->tv_nsec -= NS_PER_SEC; in sumTimespec()
1184 result->tv_nsec += NS_PER_SEC; in subTimespec()
1191 return (long long)now->tv_sec * NS_PER_SEC + now->tv_nsec; in nsecTimespec()
1399 convert.tv_sec += crun / (long long)NS_PER_SEC; in convertMonotonic()
1401 convert.tv_nsec -= (-crun) % NS_PER_SEC; in convertMonotonic()
1403 convert.tv_nsec += NS_PER_SEC; in convertMonotonic()
1407 convert.tv_nsec += crun % NS_PER_SEC; in convertMonotonic()
1408 if (convert.tv_nsec >= (long)NS_PER_SEC) { in convertMonotonic()
[all …]
Dlog_time.cpp99 unsigned long mul = NS_PER_SEC; in strptime()
Dpmsg_reader.cpp82 (buf.l.realtime.tv_nsec >= NS_PER_SEC) || in PmsgRead()
/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/memory/lmkd/
Dstatslog.cpp185 mem_st->process_start_time_ns = starttime * (NS_PER_SEC / sysconf(_SC_CLK_TCK)); in memory_stat_from_procfs()
Dlmkd.cpp102 #define NS_PER_MS (NS_PER_SEC / MS_PER_SEC)
798 mem_st.process_start_time_ns = starttime * (NS_PER_SEC / sysconf(_SC_CLK_TCK)); in poll_kernel()
/system/core/logd/
DChattyLogBuffer.cpp61 if (elem.realtime().nsec() > (last.realtime().nsec() + 60 * NS_PER_SEC)) return DIFFERENT; in Identical()
265 uint64_t current = element->realtime().nsec() - (EXPIRE_RATELIMIT * NS_PER_SEC); in clear()
DLogBufferTest.cpp267 .nsec = rand_uint32(NS_PER_SEC), in GenerateRandomLogMessage()
DLogKlog.cpp336 unsigned long multiplier = NS_PER_SEC; in sniffTime()
/system/core/liblog/tests/
Dliblog_benchmark.cpp699 state.SetIterationTime((end - start) / (double)NS_PER_SEC); in BM_log_latency()
/system/core/logcat/
Dlogcat.cpp470 log_time modulo(0, NS_PER_SEC); in lastLogTime()