Class CPUTimer.CPUTimerFactory

  • Enclosing class:
    CPUTimer

    public static class CPUTimer.CPUTimerFactory
    extends java.lang.Object
    • Constructor Detail

      • CPUTimerFactory

        public CPUTimerFactory()
    • 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:
        toString in class java.lang.Object
        Returns:
        See Also:
        Object.toString()