Home
last modified time | relevance | path

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

/system/extras/micro_bench/
Dmicro_bench.cpp45 #define COMPUTE_RUNNING(avg, running_avg, square_avg, cur_idx) \ argument
46 running_avg = ((running_avg) / ((cur_idx) + 1)) * (cur_idx) + (avg) / ((cur_idx) + 1); \
49 #define GET_STD_DEV(running_avg, square_avg) \ argument
50 sqrt((square_avg) - (running_avg) * (running_avg))
108 double avg, running_avg = 0.0, square_avg = 0.0; in benchmarkSleep() local
117 COMPUTE_RUNNING(avg, running_avg, square_avg, i); in benchmarkSleep()
127 running_avg, GET_STD_DEV(running_avg, square_avg)); in benchmarkSleep()
141 double avg, running_avg = 0.0, square_avg = 0.0; in benchmarkCpu() local
150 COMPUTE_RUNNING(avg, running_avg, square_avg, i); in benchmarkCpu()
160 running_avg, GET_STD_DEV(running_avg, square_avg)); in benchmarkCpu()