Interface TimerDecorated

All Superinterfaces:
AutoCloseable
All Known Implementing Classes:
Timed, TimedResource, TimedWritableByteChannel, TimePortAndAssignment, TimerDecoratedAssignment

public interface TimerDecorated extends AutoCloseable
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
     
    long
     
    default long
    stopTiming(com.codahale.metrics.Timer.Context timing)
    Stop the timer for measured object.
  • Method Details

    • stopTiming

      long stopTiming()
    • stopTiming

      default long stopTiming(com.codahale.metrics.Timer.Context timing)
      Stop the timer for measured object. Call to this method will not reset the start time. Multiple calls result in multiple updates.
      Returns:
      Time a object is in use, or under measurement, in nanoseconds.
    • close

      default void close() throws Exception
      Specified by:
      close in interface AutoCloseable
      Throws:
      Exception