public class TimerPool
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
dumpAll(java.util.logging.Logger logger)
Dump all timers
|
static int |
getNumCachedTimers() |
static Timer |
getTimer(java.lang.Object owner,
java.lang.String timerName)
Retrieves (or creates) a timer with the given name
|
static void |
resetAll()
Resets all timers
|
public static Timer getTimer(java.lang.Object owner, java.lang.String timerName)
owner
- owner of the timertimerName
- the name of the particular timer to retrieve. If the timer does not already exist, it will be
createdpublic static int getNumCachedTimers()
Timer
instances.public static void dumpAll(java.util.logging.Logger logger)
logger
- the logger to use for dumppublic static void resetAll()