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 Object
- Author:
- Rainer Prosi, Heidelberger Druckmaschinen *
theFactory
protected static CPUTimer.CPUTimerFactory theFactory
CPUTimer.CPUTimerFactory
public CPUTimer.CPUTimerFactory()
getCurrentTimer
public CPUTimer getCurrentTimer(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(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 Vector<CPUTimer> getTimers(String id)
- get all timers for all threads for a given id
- Parameters:
id - if null get all
- Returns:
getCreateCurrentTimer
public CPUTimer getCreateCurrentTimer(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 String toString()
- Overrides:
toString in class Object
- Returns:
- See Also:
Object.toString()
Copyright © 2013. All Rights Reserved.