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: