MCPcopy Create free account
hub / github.com/schollz/progressbar / OptionSetPredictTime

Function OptionSetPredictTime

progressbar.go:310–314  ·  view source on GitHub ↗

OptionSetPredictTime will also attempt to predict the time remaining.

(predictTime bool)

Source from the content-addressed store, hash-verified

308
309// OptionSetPredictTime will also attempt to predict the time remaining.
310func OptionSetPredictTime(predictTime bool) Option {
311 return func(p *ProgressBar) {
312 p.config.predictTime = predictTime
313 }
314}
315
316// OptionShowCount will also print current count out of total
317func OptionShowCount() Option {

Callers 10

Example_xOutOfYFunction · 0.85
ExampleOptionShowItsFunction · 0.85
TestOptionSetPredictTimeFunction · 0.85
TestOptionSetElapsedTimeFunction · 0.85
TestOptionFullWidthFunction · 0.85

Calls

no outgoing calls

Tested by 10

Example_xOutOfYFunction · 0.68
ExampleOptionShowItsFunction · 0.68
TestOptionSetPredictTimeFunction · 0.68
TestOptionSetElapsedTimeFunction · 0.68
TestOptionFullWidthFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…