Class Timer


  • public final class Timer
    extends Object
    Class to implement a Timer
    • Constructor Detail

      • Timer

        public Timer()
        Constructor (autostarted)
      • Timer

        public Timer​(boolean autoStart)
        Constructor
        Parameters:
        autoStart - autoStart
    • Method Detail

      • start

        public Timer start()
        Method to start the Timer
        Returns:
        the return value
      • stop

        public Timer stop()
        Method to stop the Timer
        Returns:
        the return value
      • elapsedTime

        public long elapsedTime()
        Method to get the Timer's elapsed time
        Returns:
        the return value