| 65 | } |
| 66 | |
| 67 | void CountingBlockOutputStream::writePrefix() |
| 68 | { |
| 69 | stopwatch.start(); |
| 70 | |
| 71 | stream->writePrefix(); |
| 72 | |
| 73 | Progress local_progress(0, 0, 0, stopwatch.elapsedMilliseconds()); |
| 74 | progress.incrementPiecewiseAtomically(local_progress); |
| 75 | |
| 76 | /// Update the write duration to progress |
| 77 | if (process_elem) |
| 78 | process_elem->updateProgressOut(local_progress); |
| 79 | |
| 80 | if (progress_callback) |
| 81 | progress_callback(local_progress); |
| 82 | } |
| 83 | |
| 84 | void CountingBlockOutputStream::writeSuffix() |
| 85 | { |
no test coverage detected