Home
last modified time | relevance | path

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

/bionic/benchmarks/
Dbenchmark_main.cpp29 static int64_t g_benchmark_total_time_ns; variable
119 g_benchmark_total_time_ns = 0; in RunRepeatedlyWithArg()
127 g_benchmark_total_time_ns += NanoTime() - g_benchmark_start_time_ns; in RunRepeatedlyWithArg()
135 while (g_benchmark_total_time_ns < 1e9 && iterations < 1e9) { in RunWithArg()
137 if (g_benchmark_total_time_ns/iterations == 0) { in RunWithArg()
140 iterations = 1e9 / (g_benchmark_total_time_ns/iterations); in RunWithArg()
149 if (g_benchmark_total_time_ns > 0 && g_bytes_processed > 0) { in RunWithArg()
151 double seconds = static_cast<double>(g_benchmark_total_time_ns)/1e9; in RunWithArg()
169 iterations, g_benchmark_total_time_ns/iterations, throughput); in RunWithArg()
181 g_benchmark_total_time_ns += NanoTime() - g_benchmark_start_time_ns; in StopBenchmarkTiming()