| 326 | } |
| 327 | |
| 328 | void Report(TResult&& r) override { |
| 329 | with_lock (STDOUT_LOCK) { |
| 330 | OutputStream << r.TestName |
| 331 | << '\t' << r.Samples |
| 332 | << '\t' << r.Iterations |
| 333 | << '\t' << r.RunTime; |
| 334 | |
| 335 | OutputStream << '\t'; |
| 336 | if (r.CyclesPerIteration) { |
| 337 | OutputStream << TCycleTimer::FmtTime(*r.CyclesPerIteration); |
| 338 | } else { |
| 339 | OutputStream << '-'; |
| 340 | } |
| 341 | |
| 342 | OutputStream << '\t'; |
| 343 | if (r.SecondsPerIteration) { |
| 344 | OutputStream << DoFmtTime(*r.SecondsPerIteration); |
| 345 | } else { |
| 346 | OutputStream << '-'; |
| 347 | } |
| 348 | |
| 349 | OutputStream << Endl; |
| 350 | } |
| 351 | } |
| 352 | private: |
| 353 | IOutputStream& OutputStream; |
| 354 | }; |