Interface Timer

  • All Superinterfaces:
    Counting, Metric

    @ProviderType
    public interface Timer
    extends Counting, Metric
    A timer metric which aggregates timing durations and provides duration statistics.
    • Method Detail

      • update

        void update​(long duration,
                    java.util.concurrent.TimeUnit unit)
        Adds a recorded duration.
        Parameters:
        duration - the length of the duration
        unit - the scale unit of duration