MCPcopy Create free account
hub / github.com/ByConity/ByConity / writeFinalProgress

Method writeFinalProgress

src/Common/ProgressIndication.cpp:49–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47}
48
49void 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
65void ProgressIndication::writeProgress()
66{

Callers

nothing calls this directly

Calls 3

formatReadableQuantityFunction · 0.85
elapsedMethod · 0.45

Tested by

no test coverage detected