Codebase list golang-github-vbauerster-mpb / 28f7341
Reflect actual single bar example Vladimir Bauer 8 years ago
1 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
6161 )
6262
6363 for i := 0; i < total; i++ {
64 time.Sleep(time.Duration(rand.Intn(100)) * time.Millisecond)
65 bar.Incr(1) // increment progress bar
64 time.Sleep(time.Duration(rand.Intn(10)+1) * time.Second / 100)
65 bar.Increment()
6666 }
6767
6868 p.Stop()