Class Timer


  • public class Timer
    extends java.lang.Object
    A simple Timer implementation to start and stop.
    • Constructor Summary

      Constructors 
      Constructor Description
      Timer()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void start()
      Starts the timer.
      long stop()
      Stops the timer and returns NOW - startTime.
      • Methods inherited from class java.lang.Object

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

      • Timer

        public Timer()
    • Method Detail

      • start

        public void start()
        Starts the timer.
      • stop

        public long stop()
        Stops the timer and returns NOW - startTime.
        Returns:
        NOW - startTime