diff --git a/decor/elapsed.go b/decor/elapsed.go index 6cee7d1..1f83b8d 100644 --- a/decor/elapsed.go +++ b/decor/elapsed.go @@ -17,15 +17,15 @@ // // `style` one of [ET_STYLE_GO|ET_STYLE_HHMMSS|ET_STYLE_HHMM|ET_STYLE_MMSS] // -// `startTime` start time +// `start` start time // // `wcc` optional WC config -func NewElapsed(style TimeStyle, startTime time.Time, wcc ...WC) Decorator { +func NewElapsed(style TimeStyle, start time.Time, wcc ...WC) Decorator { var msg string producer := chooseTimeProducer(style) fn := func(s Statistics) string { if !s.Completed { - msg = producer(time.Since(startTime)) + msg = producer(time.Since(start)) } return msg }