public class RTimer extends Object
Modifier and Type | Class and Description |
---|---|
protected static interface |
RTimer.TimerImpl |
Modifier and Type | Field and Description |
---|---|
protected SimpleOrderedMap<RTimer> |
children |
protected double |
culmTime |
static int |
PAUSED |
static int |
STARTED |
protected int |
state |
static int |
STOPPED |
protected double |
time |
protected RTimer.TimerImpl |
timerImpl |
Constructor and Description |
---|
RTimer() |
Modifier and Type | Method and Description |
---|---|
NamedList |
asNamedList() |
SimpleOrderedMap<RTimer> |
getChildren()
Manipulating this map may have undefined results.
|
double |
getTime()
Get total elapsed time for this timer.
|
protected RTimer |
newTimer() |
protected RTimer.TimerImpl |
newTimerImpl() |
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() |
public static final int STARTED
public static final int STOPPED
public static final int PAUSED
protected int state
protected RTimer.TimerImpl timerImpl
protected double time
protected double culmTime
protected SimpleOrderedMap<RTimer> children
protected RTimer.TimerImpl newTimerImpl()
protected RTimer newTimer()
public double stop()
public void pause()
public void resume()
public double getTime()
public NamedList asNamedList()
public SimpleOrderedMap<RTimer> getChildren()
Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.