Class CPUTimer.CPUTimerFactory

java.lang.Object
org.cip4.jdflib.util.CPUTimer.CPUTimerFactory
Enclosing class:
CPUTimer

public static class CPUTimer.CPUTimerFactory extends Object
  • Field Details

  • Constructor Details

    • CPUTimerFactory

      public CPUTimerFactory()
  • Method Details

    • 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: