diff --git a/loop.go b/loop.go index d00bb9a..3f236fe 100644 --- a/loop.go +++ b/loop.go @@ -27,9 +27,8 @@ func NewLoop(interval time.Duration) *Loop { } // SetInterval allows to change the interval before starting. -// The interval is specified in milliseconds. 1 sec = 1000 millisec. func (loop *Loop) SetInterval(interval time.Duration) { - loop.interval = interval * time.Millisecond + loop.interval = interval } // SetNextTickDuration allows to change the next tick duration after starting.