DecoratorAverageAdjust godoc edit
Vladimir Bauer
1 year, 10 months ago
| 345 | 345 | } |
| 346 | 346 | } |
| 347 | 347 | |
| 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. | |
| 352 | 350 | func (b *Bar) DecoratorAverageAdjust(start time.Time) { |
| 353 | 351 | b.TraverseDecorators(func(d decor.Decorator) { |
| 354 | 352 | if d, ok := d.(decor.AverageDecorator); ok { |