Home
last modified time | relevance | path

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

/system/core/logd/
DLogStatistics.cpp568 d / NS_PER_SEC / 60 / 60, (d / NS_PER_SEC / 60) % 60, in format()
569 (d / NS_PER_SEC) % 60, d % NS_PER_SEC); in format()
588 d / NS_PER_SEC / 60 / 60, (d / NS_PER_SEC / 60) % 60, in format()
589 (d / NS_PER_SEC) % 60, d % NS_PER_SEC); in format()
728 if (duration >= (NS_PER_SEC * max_seconds)) { in format()
729 duration = NS_PER_SEC * (max_seconds - 1); in format()
736 if (duration >= (NS_PER_SEC * 10)) { in format()
738 (duration + (NS_PER_SEC / 2)) in format()
739 / NS_PER_SEC); in format()
740 } else if (duration >= (NS_PER_SEC / (1000 / 10))) { in format()
[all …]
/system/core/liblog/
Dlog_time.cpp104 unsigned long mul = NS_PER_SEC; in strptime()
144 this->tv_nsec = NS_PER_SEC + this->tv_nsec - T.tv_nsec; in operator -=()
161 this->tv_nsec = NS_PER_SEC + this->tv_nsec - T.tv_nsec; in operator -=()
/system/core/include/log/
Dlog_read.h24 #define NS_PER_SEC 1000000000ULL macro
140 return static_cast<uint64_t>(tv_sec) * NS_PER_SEC + tv_nsec; in nsec()
Dlogger.h77 #define NS_PER_SEC 1000000000ULL macro
119 return static_cast<uint64_t>(entry.sec) * NS_PER_SEC + entry.nsec; in nsec()
/system/extras/micro_bench/
Dmicro_bench.cpp41 #define NS_PER_SEC 1000000000 macro
90 return static_cast<uint64_t>(t.tv_sec) * NS_PER_SEC + t.tv_nsec; in nanoTime()
127 return ((size/1024.0) * copies) / ((double)time_ns/NS_PER_SEC); in computeAverage()
144 name, copies, size, (double)time_ns/NS_PER_SEC, avg/1024.0); in printIter()
173 return ((size/1024.0) * copies * num_buffers) / ((double)time_ns/NS_PER_SEC); in computeColdAverage()
178 name, copies, num_buffers, size, (double)time_ns/NS_PER_SEC, avg/1024.0); in printColdIter()
375 (double)time_ns/NS_PER_SEC, in benchmarkSleep()
390 (double)time_ns/NS_PER_SEC, in benchmarkCpu()
/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/libbacktrace/
Dbacktrace_test.cpp51 #define NS_PER_SEC 1000000000ULL macro
82 return static_cast<uint64_t>(t.tv_sec * NS_PER_SEC + t.tv_nsec); in NanoTime()
101 if ((NanoTime() - start) > NS_PER_SEC) { in WaitForStop()
196 } while ((NanoTime() - start) < seconds * NS_PER_SEC); in WaitForNonZero()
287 } while (!verified && (NanoTime() - start) <= 5 * NS_PER_SEC); in VerifyProcTest()
403 ((NanoTime() - start) <= 5 * NS_PER_SEC)); in TEST()