Class CumulativeTimer

java.lang.Object
io.micrometer.core.instrument.AbstractMeter
io.micrometer.core.instrument.AbstractTimer
io.micrometer.core.instrument.cumulative.CumulativeTimer
All Implemented Interfaces:
HistogramSupport, Meter, Timer

public class CumulativeTimer
extends AbstractTimer
  • Constructor Details

  • Method Details

    • recordNonNegative

      protected void recordNonNegative​(long amount, java.util.concurrent.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​(java.util.concurrent.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​(java.util.concurrent.TimeUnit unit)
      Parameters:
      unit - The base unit of time to scale the max to.
      Returns:
      The maximum time of a single event.