Class ObjectKeyTimer


  • public class ObjectKeyTimer
    extends Object
    It is a timer class which will keep tracking controlled by key of begin & finish.
    • Constructor Detail

      • ObjectKeyTimer

        public ObjectKeyTimer​(com.codahale.metrics.Timer timer)

        Constructor for ThreadTimer.

        Parameters:
        timer - a Timer object.
    • Method Detail

      • begin

        public void begin​(Object key)

        begin

      • end

        public void end​(Object key)

        end

      • getTimer

        public com.codahale.metrics.Timer getTimer()