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 -
    • Method Detail

      • start

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

        public Timer stop()
        Method to stop the Timer
        Returns:
      • duration

        public Duration duration()
        Method to get the Timer duration
        Returns: