Home
last modified time | relevance | path

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

/system/core/liblog/tests/
Dbenchmark_main.cpp30 static uint64_t gBenchmarkTotalTimeNs; variable
114 if ((gBenchmarkTotalTimeNs == 0) && (StartTimeNs != 0) && in RunRepeatedly()
116 gBenchmarkTotalTimeNs = NanoTime() - StartTimeNs; in RunRepeatedly()
126 while (s < 2e9 && gBenchmarkTotalTimeNs < 1e9 && iterations < 1e9) { in Run()
128 if (gBenchmarkTotalTimeNs / iterations == 0) { in Run()
131 iterations = 1e9 / (gBenchmarkTotalTimeNs / iterations); in Run()
143 if (gBenchmarkTotalTimeNs > 0 && gBytesProcessed > 0) { in Run()
145 double seconds = static_cast<double>(gBenchmarkTotalTimeNs) / 1e9; in Run()
154 uint64_t mean = gBenchmarkTotalTimeNs / iterations; in Run()
157 mean = gBenchmarkTotalTimeNs / gBenchmarkNum; in Run()
[all …]