Class Stopwatch


  • public class Stopwatch
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      Stopwatch()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long getElapsed()  
      void pause()  
      void resume()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • lastPauseTime

        protected long lastPauseTime
      • startTime

        protected long startTime
      • pauseDuration

        protected long pauseDuration
      • paused

        protected boolean paused
    • Constructor Detail

      • Stopwatch

        public Stopwatch()
    • Method Detail

      • pause

        public void pause()
      • resume

        public void resume()
      • getElapsed

        public long getElapsed()