Class Stopwatch

  • Direct Known Subclasses:
    StopwatchGC

    public class Stopwatch
    extends Object
    Basic class to time events
    • 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