Package org.apache.solr.util
Class RTimer
java.lang.Object
org.apache.solr.util.RTimer
- Direct Known Subclasses:
AttributedLongTimer.MetricTimer,RTimerTree
A simple timer.
RTimers are started automatically when instantiated.
- Since:
- solr 1.3
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoublegetTime()Get total elapsed time for this timer.protected RTimer.TimerImplvoidpause()voidresume()doublestop()Stop this timer
-
Field Details
-
STARTED
public static final int STARTED- See Also:
-
STOPPED
public static final int STOPPED- See Also:
-
PAUSED
public static final int PAUSED- See Also:
-
state
protected int state
-
-
Constructor Details
-
RTimer
public RTimer() -
RTimer
-
-
Method Details
-
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.
-