public synchronized void printStatistics() {
        ClientStats stats = m_periodicStatsContext.fetchAndResetBaseline().getStats();
        long time = Math.round((stats.getEndTimestamp() - m_startTS) / 1000.0);

        StringBuilder statsBuilder = new StringBuilder();
        statsBuilder.append(String.format("%02d:%02d:%02d ", time / 3600, (time / 60) % 60, time % 60));
        statsBuilder.append(String.format("Throughput %d/s, ", stats.getTxnThroughput()));
        statsBuilder.append(String.format("Aborts/Failures %d/%d",
                stats.getInvocationAborts(), stats.getInvocationErrors()));

        if (m_config.latencyreport) {
            statsBuilder.append(String.format(", Avg/95%% Latency %.2f/%.2fms",
                                stats.getAverageLatency(),
                                stats.kPercentileLatencyAsDouble(0.95)));
        }
        printLog(statsBuilder.toString());
    }
public synchronized void printStatistics ( ) { ClientStats stats = m_periodicStatsContext . fetchAndResetBaseline ( ) . getStats ( ) ; long time = Math . round ( ( stats . getEndTimestamp ( ) - m_startTS ) / 1000.0 ) ; StringBuilder statsBuilder = new StringBuilder ( ) ; statsBuilder . append ( String . format ( "%02d:%02d:%02d " , time / 3600 , ( time / 60 ) % 60 , time % 60 ) ) ; statsBuilder . append ( String . format ( "Throughput %d/s, " , stats . getTxnThroughput ( ) ) ) ; statsBuilder . append ( String . format ( "Aborts/Failures %d/%d" , stats . getInvocationAborts ( ) , stats . getInvocationErrors ( ) ) ) ; if ( m_config . latencyreport ) { statsBuilder . append ( String . format ( ", Avg/95%% Latency %.2f/%.2fms" , stats . getAverageLatency ( ) , stats . kPercentileLatencyAsDouble ( 0.95 ) ) ) ; } printLog ( statsBuilder . toString ( ) ) ; }
Prints a one line update on performance that can be printed
periodically during a benchmark.