diff --git a/example_test.go b/example_test.go index 3d910e3..3da8963 100644 --- a/example_test.go +++ b/example_test.go @@ -40,6 +40,7 @@ // simulating some work max := 100 * time.Millisecond for i := 0; i < total; i++ { + bar.StartBlock() // optional call, required for ETA time.Sleep(time.Duration(rand.Intn(10)+1) * max / 10) // increment by 1 (there is bar.IncrBy(int) method, if needed) bar.Increment()