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 SummaryNested Classes Modifier and Type Class Description protected static interfaceRTimer.TimerImpl
 - 
Constructor SummaryConstructors Constructor Description RTimer()
 - 
Method SummaryAll 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- 
STARTEDpublic static final int STARTED - See Also:
- Constant Field Values
 
 - 
STOPPEDpublic static final int STOPPED - See Also:
- Constant Field Values
 
 - 
PAUSEDpublic static final int PAUSED - See Also:
- Constant Field Values
 
 - 
stateprotected int state 
 
- 
 - 
Method Detail- 
newTimerImplprotected RTimer.TimerImpl newTimerImpl() 
 - 
stoppublic double stop() Stop this timer
 - 
pausepublic void pause() 
 - 
resumepublic void resume() 
 - 
getTimepublic double getTime() Get total elapsed time for this timer.
 
- 
 
-