The motivation of advancing `now` in `computeLatency` is to save on 
`milliseconds()` call. I admit it is not ideal, if we want to change it to a 
different way, say: passing `now` along the calls than using a variable at all, 
then I'd suggest we do it in a separate PR as this PR has been dragging too 
long.

Regarding the check: that is a good idea, but I guess you mean `now - 
lastPollMs > timeSinceLastPoll` right? I will add that check.

[ Full content available at: https://github.com/apache/kafka/pull/5428 ]
This message was relayed via gitbox.apache.org for [email protected]

Reply via email to