GetElapsedTime returns the elapsed time, since the ProgressbarPrinter was started.
()
| 346 | |
| 347 | // GetElapsedTime returns the elapsed time, since the ProgressbarPrinter was started. |
| 348 | func (p *ProgressbarPrinter) GetElapsedTime() time.Duration { |
| 349 | return time.Since(p.startedAt) |
| 350 | } |
| 351 | |
| 352 | func (p *ProgressbarPrinter) parseElapsedTime() string { |
| 353 | // time.Duration.Round panics if the rounding factor is <= 0. |
no outgoing calls