diff --git a/example/simple/main.go b/example/simple/main.go index ec841e5..74eab83 100644 --- a/example/simple/main.go +++ b/example/simple/main.go @@ -27,8 +27,8 @@ // if you still need p.AddBar() here and maintain ordering, use // (*mpb.Progress).BeforeRenderFunc(f mpb.BeforeRender) for i := 0; i < 100; i++ { + time.Sleep(time.Duration(rand.Intn(100)) * time.Millisecond) bar.Incr(1) - time.Sleep(time.Duration(rand.Intn(100)) * time.Millisecond) } }() }