private void update(CumulativeResult cumulativeResult) {
            this.produceRateTotal = cumulativeResult.produceRateTotal;
            this.produceThroughputTotalBps = cumulativeResult.produceThroughputTotalBps;
            this.produceCountTotal = cumulativeResult.produceCountTotal;
            this.produceSizeTotalBytes = cumulativeResult.produceSizeTotalBytes;
            this.produceErrorTotal = cumulativeResult.produceErrorTotal;
            this.consumeRateTotal = cumulativeResult.consumeRateTotal;
            this.consumeThroughputTotalBps = cumulativeResult.consumeThroughputTotalBps;
            this.consumeCountTotal = cumulativeResult.consumeCountTotal;
            this.consumeSizeTotalBytes = cumulativeResult.consumeSizeTotalBytes;
            this.produceLatencyMeanTotalMicros = cumulativeResult.produceLatencyMeanTotalMicros;
            this.produceLatency50thTotalMicros = cumulativeResult.produceLatency50thTotalMicros;
            this.produceLatency75thTotalMicros = cumulativeResult.produceLatency75thTotalMicros;
            this.produceLatency90thTotalMicros = cumulativeResult.produceLatency90thTotalMicros;
            this.produceLatency95thTotalMicros = cumulativeResult.produceLatency95thTotalMicros;
            this.produceLatency99thTotalMicros = cumulativeResult.produceLatency99thTotalMicros;
            this.produceLatency999thTotalMicros = cumulativeResult.produceLatency999thTotalMicros;
            this.produceLatency9999thTotalMicros = cumulativeResult.produceLatency9999thTotalMicros;
            this.produceLatencyMaxTotalMicros = cumulativeResult.produceLatencyMaxTotalMicros;
            this.produceLatencyQuantilesMicros = cumulativeResult.produceLatencyQuantilesMicros;
            this.endToEndLatencyMeanTotalMicros = cumulativeResult.endToEndLatencyMeanTotalMicros;
            this.endToEndLatency50thTotalMicros = cumulativeResult.endToEndLatency50thTotalMicros;
            this.endToEndLatency75thTotalMicros = cumulativeResult.endToEndLatency75thTotalMicros;
            this.endToEndLatency90thTotalMicros = cumulativeResult.endToEndLatency90thTotalMicros;
            this.endToEndLatency95thTotalMicros = cumulativeResult.endToEndLatency95thTotalMicros;
            this.endToEndLatency99thTotalMicros = cumulativeResult.endToEndLatency99thTotalMicros;
            this.endToEndLatency999thTotalMicros = cumulativeResult.endToEndLatency999thTotalMicros;
            this.endToEndLatency9999thTotalMicros = cumulativeResult.endToEndLatency9999thTotalMicros;
            this.endToEndLatencyMaxTotalMicros = cumulativeResult.endToEndLatencyMaxTotalMicros;
            this.endToEndLatencyQuantilesMicros = cumulativeResult.endToEndLatencyQuantilesMicros;
        }
Check if the loop in {@link StatsCollector#printAndCollectStats} should stop.

@param startNanos start time in nanoseconds
@param nowNanos   current time in nanoseconds
@return true if the loop should stop
tools/src/main/java/org/apache/kafka/tools/automq/perf/StatsCollector.java