MCPcopy Index your code
hub / github.com/schollz/progressbar / ExampleOptionShowIts

Function ExampleOptionShowIts

progressbar_test.go:163–170  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

161}
162
163func ExampleOptionShowIts() {
164 bar := NewOptions(100, OptionSetWidth(10), OptionShowIts(), OptionSetPredictTime(false))
165 bar.Reset()
166 time.Sleep(1 * time.Second)
167 bar.Add(10)
168 // Output:
169 // 10% |█ | (10 it/s)
170}
171
172func ExampleOptionShowCount_minuscule() {
173 bar := NewOptions(10000, OptionSetWidth(10), OptionShowCount(), OptionSetPredictTime(false))

Callers

nothing calls this directly

Calls 6

NewOptionsFunction · 0.85
OptionSetWidthFunction · 0.85
OptionShowItsFunction · 0.85
OptionSetPredictTimeFunction · 0.85
ResetMethod · 0.80
AddMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…