GenericStop runs Stop, but returns a LivePrinter. This is used for the interface LivePrinter. You most likely want to use Stop instead of this in your program.
()
| 339 | // This is used for the interface LivePrinter. |
| 340 | // You most likely want to use Stop instead of this in your program. |
| 341 | func (p *ProgressbarPrinter) GenericStop() (*LivePrinter, error) { |
| 342 | p2, _ := p.Stop() |
| 343 | lp := LivePrinter(p2) |
| 344 | return &lp, nil |
| 345 | } |
| 346 | |
| 347 | // GetElapsedTime returns the elapsed time, since the ProgressbarPrinter was started. |
| 348 | func (p *ProgressbarPrinter) GetElapsedTime() time.Duration { |
nothing calls this directly
no test coverage detected