gus-asf commented on code in PR #2347:
URL: https://github.com/apache/solr/pull/2347#discussion_r1526255373


##########
solr/core/src/java/org/apache/solr/util/ThreadCpuTimer.java:
##########
@@ -87,23 +87,27 @@ public long getStartCpuTimeNs() {
    *
    * @return current value, or {@link #UNSUPPORTED} if not supported.
    */
-  public long getCurrentCpuTimeNs() {
+  public long getElapsedTimerCpuNs() {
     if (THREAD_MX_BEAN != null) {
       return this.startCpuTimeNanos != UNSUPPORTED
-          ? THREAD_MX_BEAN.getCurrentThreadCpuTime() - this.startCpuTimeNanos
+          ? getThreadTotalCpuNs() - this.startCpuTimeNanos
           : UNSUPPORTED;
     } else {
       return UNSUPPORTED;
     }
   }
 
+  public long getThreadTotalCpuNs() {
+    return THREAD_MX_BEAN.getCurrentThreadCpuTime();

Review Comment:
   Ah I spent a bunch of time trying to come up with names and didn't think to 
use the word absolute. That might work, Ill fiddle with that.



-- 
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.

To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org
For additional commands, e-mail: issues-h...@solr.apache.org

Reply via email to