micrometer icon indicating copy to clipboard operation
micrometer copied to clipboard

Should CompositeFunctionTimer implement mean?

Open marschall opened this issue 3 years ago • 0 comments

Please describe the feature request. CompositeFunctionTimer currently inherits the default #mean(TimeUnit) implementation from FunctionTimer. Should it implement it and delegate to the first child instead like #count() and #totalTime(TimeUnit)?

Rationale Only one method delegation instead of two. If the first child already implements #mean(TimeUnit) instead of inheriting it even more efficiency gains may be possible.

marschall avatar Jun 26 '21 19:06 marschall