|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.solr.util.RTimer
public class RTimer
A recursive timer. RTimers are started automatically when instantiated; subtimers are also started automatically when created.
| Field Summary | |
|---|---|
protected SimpleOrderedMap<RTimer> |
children
|
protected double |
culmTime
|
static int |
PAUSED
|
static int |
STARTED
|
protected double |
startTime
|
protected int |
state
|
static int |
STOPPED
|
protected double |
time
|
| Constructor Summary | |
|---|---|
RTimer()
|
|
| Method Summary | |
|---|---|
NamedList |
asNamedList()
|
SimpleOrderedMap<RTimer> |
getChildren()
Manipulating this map may have undefined results. |
double |
getTime()
Get total elapsed time for this timer. |
static void |
main(String[] argv)
Testing |
protected double |
now()
Get current time May override to implement a different timer (CPU time, etc). |
void |
pause()
|
void |
resume()
|
double |
stop()
Recursively stop timer and sub timers |
RTimer |
sub(String desc)
Create new subtimer with given name Subtimer will be started. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int STARTED
public static final int STOPPED
public static final int PAUSED
protected int state
protected double startTime
protected double time
protected double culmTime
protected SimpleOrderedMap<RTimer> children
| Constructor Detail |
|---|
public RTimer()
| Method Detail |
|---|
protected double now()
public double stop()
public void pause()
public void resume()
public double getTime()
public RTimer sub(String desc)
public String toString()
toString in class Objectpublic NamedList asNamedList()
public SimpleOrderedMap<RTimer> getChildren()
public static void main(String[] argv)
throws InterruptedException
InterruptedException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||