code: public long getTxnThroughput() {
          assert(m_startTS != Long.MAX_VALUE);
          assert(m_endTS != Long.MIN_VALUE);
  
          if (m_invocationsCompleted == 0) return 0;
          if (m_endTS < m_startTS) {
              m_endTS = m_startTS + 1; // 1 ms duration is sorta cheatin'
          }
          long durationMs = m_endTS - m_startTS;
          return (long) (m_invocationsCompleted / (durationMs / 1000.0));
      }
docs: <p>Return an average throughput of transactions acknowledged per
  second for the duration covered by this stats instance.</p>
  
  <p>Essentially <code>{@link #getInvocationsCompleted()} divided by
  ({@link #getStartTimestamp()} - {@link #getEndTimestamp()} / 1000.0)</code>,
  but with additional safety checks.</p>
  
  @return Throughput in transactions acknowledged per second.