Package org.cip4.jdflib.util
Class CPUTimer.CPUTimerFactory
java.lang.Object
org.cip4.jdflib.util.CPUTimer.CPUTimerFactory
- Enclosing class:
- CPUTimer
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget the CPUTimer for a given ID for this thread, create it if it does not yet exist the timer is in paused modeget the CPUTimer for a given ID for this thread the timer is in paused modegetGlobalTimer(String id) get the summary of all matching timers over all threadsget all timers for all threads for a given idtoString()
-
Field Details
-
theFactory
-
-
Constructor Details
-
CPUTimerFactory
public CPUTimerFactory()
-
-
Method Details
-
getCurrentTimer
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
get the summary of all matching timers over all threads- Parameters:
id- if null get all- Returns:
- a disposable summary timer
-
getTimers
get all timers for all threads for a given id- Parameters:
id- if null get all- Returns:
-
getCreateCurrentTimer
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
-