Home
last modified time | relevance | path

Searched refs:NS_PER_SEC (Results 1 – 14 of 14) 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.c986 multiplier = NS_PER_SEC; in readSeconds()
998 if (left->tv_nsec >= (long)NS_PER_SEC) { in sumTimespec()
999 left->tv_nsec -= NS_PER_SEC; in sumTimespec()
1012 result->tv_nsec += NS_PER_SEC; in subTimespec()
1020 return (long long)now->tv_sec * NS_PER_SEC + now->tv_nsec; in nsecTimespec()
1233 convert.tv_sec += crun / (long long)NS_PER_SEC; in convertMonotonic()
1235 convert.tv_nsec -= (-crun) % NS_PER_SEC; in convertMonotonic()
1237 convert.tv_nsec += NS_PER_SEC; in convertMonotonic()
1241 convert.tv_nsec += crun % NS_PER_SEC; in convertMonotonic()
1242 if (convert.tv_nsec >= (long)NS_PER_SEC) { in convertMonotonic()
[all …]
Dpmsg_reader.c187 || (buf.l.realtime.tv_nsec >= NS_PER_SEC)) { in pmsgRead()
/system/core/include/log/
Dlog_read.h24 #define NS_PER_SEC 1000000000ULL macro
152 return static_cast<uint64_t>(tv_sec) * NS_PER_SEC + tv_nsec; in nsec()
Dlogger.h93 #define NS_PER_SEC 1000000000ULL macro
136 return static_cast<uint64_t>(entry.sec) * NS_PER_SEC + entry.nsec; in nsec()
/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/extras/memtrack/
Dmemtrack.cpp351 nsecs = (unsigned long long)t.tv_sec*NS_PER_SEC + t.tv_nsec; in main()
357 nsecs = ((unsigned long long)t.tv_sec*NS_PER_SEC + t.tv_nsec) - nsecs; in main()
358 printf("Scan Time %0.4f\n", ((double)nsecs)/NS_PER_SEC); in main()
Dmemtrack.h27 #define NS_PER_SEC 1000000000LL macro
/system/core/logd/
DLogTimes.cpp46 mTimeout.tv_sec = timeout / NS_PER_SEC; in LogTimeEntry()
47 mTimeout.tv_nsec = timeout % NS_PER_SEC; in LogTimeEntry()
DLogReader.cpp78 timeout = atol(cp + sizeof(_timeout) - 1) * NS_PER_SEC + in onDataAvailable()
DLogKlog.cpp377 unsigned long multiplier = NS_PER_SEC; in sniffTime()
DLogBuffer.cpp426 - (EXPIRE_RATELIMIT * NS_PER_SEC); in clear()
/system/core/libbacktrace/
Dbacktrace_test.cpp59 #define NS_PER_SEC 1000000000ULL macro
91 return static_cast<uint64_t>(t.tv_sec * NS_PER_SEC + t.tv_nsec); in NanoTime()
111 if ((NanoTime() - start) > NS_PER_SEC) { in WaitForStop()
216 } while ((NanoTime() - start) < seconds * NS_PER_SEC); in WaitForNonZero()
335 } while (!verified && (NanoTime() - start) <= 5 * NS_PER_SEC); in VerifyProcTest()
453 ((NanoTime() - start) <= 5 * NS_PER_SEC)); in TEST()
1109 if ((NanoTime() - start) > 5 * NS_PER_SEC) { in TEST()
1284 if ((NanoTime() - start) > 5 * NS_PER_SEC) { in TEST()
1401 if ((NanoTime() - start) > 5 * NS_PER_SEC) { in TEST()
/system/core/logcat/
Dlogcat.cpp475 log_time modulo(0, NS_PER_SEC); in lastLogTime()