Class RTimer

java.lang.Object
org.apache.solr.util.RTimer
Direct Known Subclasses:
AttributedLongTimer.MetricTimer, RTimerTree

public class RTimer extends Object
A simple timer.

RTimers are started automatically when instantiated.

Since:
solr 1.3
  • Field Details

  • Constructor Details

    • RTimer

      public RTimer()
    • RTimer

      public RTimer(TimeUnit timeUnit)
  • Method Details

    • newTimerImpl

      protected RTimer.TimerImpl newTimerImpl()
    • stop

      public double stop()
      Stop this timer
    • pause

      public void pause()
    • resume

      public void resume()
    • getTime

      public double getTime()
      Get total elapsed time for this timer.