code: public void stopTime() {
      this.elapsedTime = System.currentTimeMillis() - this.startTime;
      this.elapsedCpuTime = (ManagementFactory.getThreadMXBean().getCurrentThreadCpuTime() - this.startCpuTime)/1000000;
    }
docs: Stops the elapsed (cpu) time since creation of this TraceMethod instance.