MCPcopy Create free account
hub / github.com/codechenx/FastTableViewer / finish

Method finish

io.go:78–91  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

76}
77
78func (p *progressTracker) finish() {
79 if !p.showProgress {
80 return
81 }
82
83 elapsed := time.Since(p.startTime).Seconds()
84 if elapsed == 0 {
85 elapsed = 0.001
86 }
87 linesPerSec := float64(p.lineCount) / elapsed
88
89 // Clear the progress line and show final summary
90 fmt.Printf("\r\033[K✓ Loaded %d lines in %.2fs (%.0f lines/sec)\n", p.lineCount, elapsed, linesPerSec)
91}
92
93// ParsedLine represents a parsed CSV line with its order
94type ParsedLine struct {

Callers 4

loadFileToBufferAsyncFunction · 0.80
loadFileToBufferFunction · 0.80
loadPipeToBufferAsyncFunction · 0.80
loadPipeToBufferFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected