Class RateCounter


  • public class RateCounter
    extends java.lang.Object
    Counts the rate that Longs are added to this from the time of creation or the last call to reset().
    • Constructor Summary

      Constructors 
      Constructor Description
      RateCounter()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void add​(long l)  
      long getRate()  
      void reset()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RateCounter

        public RateCounter()
    • Method Detail

      • add

        public void add​(long l)
      • getRate

        public long getRate()
      • reset

        public void reset()