Codebase list golang-github-vbauerster-mpb / 111651a
DecoratorAverageAdjust godoc edit Vladimir Bauer 1 year, 10 months ago
1 changed file(s) with 2 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
345345 }
346346 }
347347
348 // DecoratorAverageAdjust adjusts all average based decorators.
349 // Call if you need to set start time after decorators have been constructed.
350 // For this method to work average decorators must implement
351 // decor.AverageDecorator interface.
348 // DecoratorAverageAdjust adjusts decorators which implement decor.AverageDecorator interface.
349 // Call if there is need to set start time after decorators have been constructed.
352350 func (b *Bar) DecoratorAverageAdjust(start time.Time) {
353351 b.TraverseDecorators(func(d decor.Decorator) {
354352 if d, ok := d.(decor.AverageDecorator); ok {