Class Timers


  • public class Timers
    extends java.lang.Object

    Since:
    2.0
    Version:
    2.0
    Author:
    Evren Sirin
    • Field Detail

      • mainTimer

        public final Timer mainTimer
    • Constructor Detail

      • Timers

        public Timers()
    • Method Detail

      • addAll

        public void addAll​(Timers other)
      • createTimer

        public Timer createTimer​(java.lang.String name)
      • startTimer

        public Timer startTimer​(java.lang.String name)
      • checkTimer

        public void checkTimer​(java.lang.String name)
                        throws java.lang.Exception
        Throws:
        java.lang.Exception
      • resetTimer

        public void resetTimer​(java.lang.String name)
      • interrupt

        public void interrupt()
      • setTimeout

        public void setTimeout​(java.lang.String name,
                               long timeout)
      • stopTimer

        public void stopTimer​(java.lang.String name)
      • resetAll

        public void resetAll()
      • getTimerTotal

        public long getTimerTotal​(java.lang.String name)
      • getTimerAverage

        public double getTimerAverage​(java.lang.String name)
      • getTimer

        public Timer getTimer​(java.lang.String name)
      • getTimers

        public java.util.Collection<Timer> getTimers()
      • print

        public void print()
      • print

        public void print​(java.io.Writer pw)
      • print

        public void print​(boolean shortForm)
      • print

        public void print​(boolean shortForm,
                          java.lang.String sortBy)
      • print

        public void print​(java.io.Writer pw,
                          boolean shortForm,
                          java.lang.String sortBy)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object