114 double sum_total = 0;
115 double sum_latency = 0;
116 printf(
"\n\ndeal.spectrum timing statistics in seconds:\n");
117 printf(
"===============================================================\n");
118 printf(
" #nr ave sum\n");
119 printf(
"===============================================================\n");
120 for(
auto const & i : m)
122 printf(
" %-18s %4d %18.12f %18.12f\n",
125 ((
double)i.second.time) / CLOCKS_PER_SEC / i.second.count,
126 ((
double)i.second.time) / CLOCKS_PER_SEC);
127 sum_total += ((double)i.second.time) / CLOCKS_PER_SEC;
128 sum_latency += ((double)i.second.time) / CLOCKS_PER_SEC / i.second.count;
130 printf(
"===============================================================\n");
131 printf(
" %18.12f %18.12f\n", sum_latency, sum_total);
132 printf(
"===============================================================\n");