| 47 | } |
| 48 | |
| 49 | void ProgressIndication::writeFinalProgress() |
| 50 | { |
| 51 | if (progress.read_rows < 1000) |
| 52 | return; |
| 53 | |
| 54 | std::cout << "Processed " << formatReadableQuantity(progress.read_rows) << " rows, " |
| 55 | << formatReadableSizeWithDecimalSuffix(progress.read_bytes); |
| 56 | |
| 57 | size_t elapsed_ns = watch.elapsed(); |
| 58 | if (elapsed_ns) |
| 59 | std::cout << " (" << formatReadableQuantity(progress.read_rows * 1000000000.0 / elapsed_ns) << " rows/s., " |
| 60 | << formatReadableSizeWithDecimalSuffix(progress.read_bytes * 1000000000.0 / elapsed_ns) << "/s.)"; |
| 61 | else |
| 62 | std::cout << ". "; |
| 63 | } |
| 64 | |
| 65 | void ProgressIndication::writeProgress() |
| 66 | { |
nothing calls this directly
no test coverage detected