|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.sf.sensor.timer.TimerRuntime
Main entry point for working with Timers and TimerStatistics.
| Field Summary | |
static String |
DEFAULT_ROOT_TIMER_LABEL
|
| Constructor Summary | |
TimerRuntime()
todo get rid of this constructor |
|
| Method Summary | |
Timer |
getTimer(String id)
Creates a new Timer instance for the specified id and starts it. |
Timer |
getTimer(String id,
String label)
Creates a new Timer instance for the specified id and starts it. |
List |
getTimerStatistics()
Returns a List<TimerStatistics> representing the statistics for all currently registered timers. |
void |
reset()
Resets all data. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final String DEFAULT_ROOT_TIMER_LABEL
| Constructor Detail |
public TimerRuntime()
| Method Detail |
public Timer getTimer(String id)
Timer instance for the specified id and starts it.
id - an id to uniquely identify the Timer.
Timer instance.
public Timer getTimer(String id,
String label)
Timer instance for the specified id and starts it.
id - an id to uniquely identify the Timer.label - a label that will be associated with the Timer.
Timer instance.public void reset()
public List getTimerStatistics()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||