Home
last modified time | relevance | path

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

/system/logging/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/logging/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/logging/liblog/
Dlogprint.cpp1153 multiplier = NS_PER_SEC; in readSeconds()
1163 if (left->tv_nsec >= (long)NS_PER_SEC) { in sumTimespec()
1164 left->tv_nsec -= NS_PER_SEC; in sumTimespec()
1175 result->tv_nsec += NS_PER_SEC; in subTimespec()
1182 return (long long)now->tv_sec * NS_PER_SEC + now->tv_nsec; in nsecTimespec()
1383 convert.tv_sec += crun / (long long)NS_PER_SEC; in convertMonotonic()
1385 convert.tv_nsec -= (-crun) % NS_PER_SEC; in convertMonotonic()
1387 convert.tv_nsec += NS_PER_SEC; in convertMonotonic()
1391 convert.tv_nsec += crun % NS_PER_SEC; in convertMonotonic()
1392 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/memory/lmkd/
Dreaper.cpp39 #define NS_PER_MS (NS_PER_SEC / MS_PER_SEC)
Dstatslog.cpp144 mem_st->process_start_time_ns = starttime * (NS_PER_SEC / sysconf(_SC_CLK_TCK)); in memory_stat_from_procfs()
Dlmkd.cpp110 #define NS_PER_MS (NS_PER_SEC / MS_PER_SEC)
861 mem_st.process_start_time_ns = starttime * (NS_PER_SEC / sysconf(_SC_CLK_TCK)); in poll_kernel()
/system/logging/logd/
DLogBufferTest.cpp236 .nsec = rand_uint32(NS_PER_SEC), in GenerateRandomLogMessage()
DLogKlog.cpp334 unsigned long multiplier = NS_PER_SEC; in sniffTime()
/system/logging/liblog/tests/
Dliblog_benchmark.cpp695 state.SetIterationTime((end - start) / (double)NS_PER_SEC); in BM_log_latency()
/system/logging/logcat/
Dlogcat.cpp464 log_time modulo(0, NS_PER_SEC); in lastLogTime()