Class Stopwatch

  • Direct Known Subclasses:
    StopwatchGC

    public class Stopwatch
    extends java.lang.Object
    Basic class to time events
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected int count  
    • Constructor Summary

      Constructors 
      Constructor Description
      Stopwatch()  
    • Field Detail

      • count

        protected int count
    • Constructor Detail

      • Stopwatch

        public Stopwatch()
    • Method Detail

      • start

        public void start()
      • stop

        public void stop()
      • getElapsedMillis

        public long getElapsedMillis()
        Returns:
        elapsed time in ms
      • getCount

        public int getCount()
        Returns:
        number of times this stopwatch was stopped
      • toString

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