| 100 | double sum = 0, sumt = 0, sumt2 = 0, maxt = 0; |
| 101 | int nloop = 0; |
| 102 | void addResult(double s, double t) { |
| 103 | sum += s; |
| 104 | sumt += t; sumt2 += t*t; maxt = std::max(maxt, t); |
| 105 | ++nloop; |
| 106 | } |
| 107 | void reportResult(const char* title) const { |
| 108 | if (nloop < 1) { |
| 109 | printf("%s(%s): no result\n",__func__,title); |