Searched refs:gBenchmarkTotalTimeNs (Results 1 - 1 of 1) sorted by relevance

/system/core/liblog/tests/
H A Dbenchmark_main.cpp30 static uint64_t gBenchmarkTotalTimeNs; variable
114 if ((gBenchmarkTotalTimeNs == 0)
117 gBenchmarkTotalTimeNs = NanoTime() - StartTimeNs;
127 while (s < 2e9 && gBenchmarkTotalTimeNs < 1e9 && iterations < 1e9) {
129 if (gBenchmarkTotalTimeNs/iterations == 0) {
132 iterations = 1e9 / (gBenchmarkTotalTimeNs/iterations);
143 if (gBenchmarkTotalTimeNs > 0 && gBytesProcessed > 0) {
145 double seconds = static_cast<double>(gBenchmarkTotalTimeNs)/1e9;
154 uint64_t mean = gBenchmarkTotalTimeNs / iterations;
157 mean = gBenchmarkTotalTimeNs / gBenchmarkNu
[all...]

Completed in 59 milliseconds