public static class CPUTimer.CPUTimerFactory
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
protected class |
CPUTimer.CPUTimerFactory.ThreadIdentifier |
| Modifier and Type | Field and Description |
|---|---|
protected static CPUTimer.CPUTimerFactory |
theFactory |
| Constructor and Description |
|---|
CPUTimerFactory() |
| Modifier and Type | Method and Description |
|---|---|
CPUTimer |
getCreateCurrentTimer(java.lang.String id)
get the CPUTimer for a given ID for this thread, create it if it does not yet exist
the timer is in paused mode
|
CPUTimer |
getCurrentTimer(java.lang.String id)
get the CPUTimer for a given ID for this thread
the timer is in paused mode
|
CPUTimer |
getGlobalTimer(java.lang.String id)
get the summary of all matching timers over all threads
|
java.util.Vector<CPUTimer> |
getTimers(java.lang.String id)
get all timers for all threads for a given id
|
java.lang.String |
toString() |
protected static CPUTimer.CPUTimerFactory theFactory
public CPUTimer getCurrentTimer(java.lang.String id)
id - the id for the timerpublic CPUTimer getGlobalTimer(java.lang.String id)
id - if null get allpublic java.util.Vector<CPUTimer> getTimers(java.lang.String id)
id - if null get allpublic CPUTimer getCreateCurrentTimer(java.lang.String id)
id - the id for the timerpublic java.lang.String toString()
toString in class java.lang.ObjectObject.toString()