Class RecoveryState.Timer

    • Method Summary

      Modifier and Type Method Description
      long getStartNanoTime()  
      void reset()  
      void start()  
      long startTime()
      Returns start time in millis
      void stop()  
      long stopTime()
      Returns stop time in millis
      long time()
      Returns elapsed time in millis, or 0 if timer was not started
      void writeTo​(StreamOutput out)
      Write this into the StreamOutput.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • startTime

        protected long startTime
      • startNanoTime

        protected long startNanoTime
      • time

        protected long time
      • stopTime

        protected long stopTime
    • Constructor Detail

      • Timer

        public Timer()
      • Timer

        public Timer​(StreamInput in)
              throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • start

        public void start()
      • startTime

        public long startTime()
        Returns start time in millis
      • time

        public long time()
        Returns elapsed time in millis, or 0 if timer was not started
      • stopTime

        public long stopTime()
        Returns stop time in millis
      • stop

        public void stop()
      • reset

        public void reset()
      • getStartNanoTime

        public long getStartNanoTime()