Package org.cip4.jdflib.util
Class CPUTimer.CPUTimerFactory
- java.lang.Object
-
- org.cip4.jdflib.util.CPUTimer.CPUTimerFactory
-
- Enclosing class:
- CPUTimer
public static class CPUTimer.CPUTimerFactory extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected classCPUTimer.CPUTimerFactory.ThreadIdentifier
-
Field Summary
Fields Modifier and Type Field Description protected static CPUTimer.CPUTimerFactorytheFactory
-
Constructor Summary
Constructors Constructor Description CPUTimerFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CPUTimergetCreateCurrentTimer(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 modeCPUTimergetCurrentTimer(java.lang.String id)get the CPUTimer for a given ID for this thread the timer is in paused modeCPUTimergetGlobalTimer(java.lang.String id)get the summary of all matching timers over all threadsjava.util.Vector<CPUTimer>getTimers(java.lang.String id)get all timers for all threads for a given idjava.lang.StringtoString()
-
-
-
Field Detail
-
theFactory
protected static CPUTimer.CPUTimerFactory theFactory
-
-
Method Detail
-
getCurrentTimer
public CPUTimer getCurrentTimer(java.lang.String id)
get the CPUTimer for a given ID for this thread the timer is in paused mode- Parameters:
id- the id for the timer- Returns:
- the timer
-
getGlobalTimer
public CPUTimer getGlobalTimer(java.lang.String id)
get the summary of all matching timers over all threads- Parameters:
id- if null get all- Returns:
- a disposable summary timer
-
getTimers
public java.util.Vector<CPUTimer> getTimers(java.lang.String id)
get all timers for all threads for a given id- Parameters:
id- if null get all- Returns:
-
getCreateCurrentTimer
public 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- Parameters:
id- the id for the timer- Returns:
- the timer
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object- Returns:
- See Also:
Object.toString()
-
-