| 137 | |
| 138 | |
| 139 | string Timer::DetailLine() const |
| 140 | { |
| 141 | stringstream ss; |
| 142 | ss << setw(15) << left << name << |
| 143 | setw(10) << right << count << |
| 144 | setw(11) << right << userCum << |
| 145 | setw(11) << setprecision(2) << fixed << |
| 146 | userCum / static_cast<double>(count) << |
| 147 | setw(11) << setprecision(0) << fixed << |
| 148 | 1000000 * systCum / static_cast<double>(CLOCKS_PER_SEC) << |
| 149 | setw(11) << setprecision(2) << fixed << |
| 150 | 1000000 * systCum / |
| 151 | static_cast<double>(count * CLOCKS_PER_SEC) << "\n"; |
| 152 | |
| 153 | return ss.str(); |
| 154 | } |