mqliang commented on a change in pull request #6694:
URL: https://github.com/apache/incubator-pinot/pull/6694#discussion_r597112072
##########
File path:
pinot-core/src/main/java/org/apache/pinot/core/query/request/context/ThreadTimer.java
##########
@@ -55,7 +55,7 @@ public void stop() {
}
public long getThreadTimeNs() {
- if (_startTimeNs == -1 || _endTimeNs == -1) {
+ if (!IS_THREAD_CPU_TIME_MEASUREMENT_ENABLED) {
Review comment:
You are right, if thread cpu timing is not enabled, `_startTimeNs == -1
&& _endTimeNs == -1`, so `_endTimeNs - _startTimeNs = 0`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]