Class LongTaskTimer.Sample

java.lang.Object
io.micrometer.core.instrument.LongTaskTimer.Sample
Enclosing interface:
LongTaskTimer

public abstract static class LongTaskTimer.Sample extends Object
  • Constructor Details

    • Sample

      public Sample()
  • Method Details

    • stop

      public abstract long stop()
      Records the duration of the operation
      Returns:
      The duration, in nanoseconds, of this sample that was stopped
    • duration

      public abstract double duration(TimeUnit unit)
      Parameters:
      unit - time unit to which the return value will be scaled
      Returns:
      duration of this sample