Interface TimerTracker


public interface TimerTracker
Tracks a timer metric.
Since:
13.0
Author:
Pedro Ruivo
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final TimerTracker
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    update(long value, TimeUnit timeUnit)
    Adds a record.
    void
    update(Duration duration)
    Adds a record.
  • Field Details

  • Method Details

    • update

      void update(Duration duration)
      Adds a record.
      Parameters:
      duration - The duration value.
    • update

      void update(long value, TimeUnit timeUnit)
      Adds a record.
      Parameters:
      value - The value.
      timeUnit - The TimeUnit of the value.