Class StatCalculatorLong


  • public class StatCalculatorLong
    extends StatCalculator<Long>
    StatCalculator for Long values
    • Constructor Detail

      • StatCalculatorLong

        public StatCalculatorLong()
    • Method Detail

      • addValue

        public void addValue​(long val)
        Add a single value (normally elapsed time)
        Parameters:
        val - the value to add, which should correspond with a single sample
      • addValue

        public void addValue​(long val,
                             int sampleCount)
        Update the calculator with the value for an aggregated sample.
        Parameters:
        val - the aggregate value, normally the elapsed time
        sampleCount - the number of samples contributing to the aggregate value