Class CumulativeTimer

All Implemented Interfaces:
HistogramSupport, Meter, Timer

public class CumulativeTimer extends AbstractTimer
  • Constructor Details

  • Method Details

    • recordNonNegative

      protected void recordNonNegative(long amount, TimeUnit unit)
      Specified by:
      recordNonNegative in class AbstractTimer
    • count

      public long count()
      Returns:
      The number of times that stop has been called on this timer.
    • totalTime

      public double totalTime(TimeUnit unit)
      Parameters:
      unit - The base unit of time to scale the total to.
      Returns:
      The total time of recorded events.
    • max

      public double max(TimeUnit unit)
      Parameters:
      unit - The base unit of time to scale the max to.
      Returns:
      The maximum time of a single event.