Package org.apache.solr.util
Class RTimer
- java.lang.Object
 - 
- org.apache.solr.util.RTimer
 
 
- 
- Direct Known Subclasses:
 RTimerTree
public class RTimer extends Object
A simple timer.RTimers are started automatically when instantiated.
- Since:
 - solr 1.3
 
 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static interfaceRTimer.TimerImpl 
- 
Constructor Summary
Constructors Constructor Description RTimer() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetTime()Get total elapsed time for this timer.protected RTimer.TimerImplnewTimerImpl()voidpause()voidresume()doublestop()Stop this timer 
 - 
 
- 
- 
Field Detail
- 
STARTED
public static final int STARTED
- See Also:
 - Constant Field Values
 
 
- 
STOPPED
public static final int STOPPED
- See Also:
 - Constant Field Values
 
 
- 
PAUSED
public static final int PAUSED
- See Also:
 - Constant Field Values
 
 
- 
state
protected int state
 
 - 
 
- 
Method Detail
- 
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. 
 - 
 
 -