Class TimerEvent

    • Constructor Detail

      • TimerEvent

        public TimerEvent​(TimerEvent.State state,
                          TimerEvent.Timer timer,
                          java.time.Duration duration,
                          java.time.Duration elapsed,
                          java.lang.String description)
        Creates a new TimerEvent. For internal use only.
        Parameters:
        state - the state of the TimerEvent.Timer
        timer - the TimerEvent.Timer
        duration - the lap duration
        elapsed - the total elapsed time since the timer was created
        description - the description of this event
    • Method Detail

      • getTimer

        public TimerEvent.Timer getTimer()
        Gets the timer this event is for.
        Returns:
        the timer
      • getDuration

        public java.time.Duration getDuration()
        Gets the duration since the last TimerEvent for this timer.
        Returns:
        the duration since the last TimerEvent for this timer.
      • getElapsed

        public java.time.Duration getElapsed()
        Gets the total elapsed duration since this timer was created.
        Returns:
        the duration since this timer was created
      • getDescription

        public java.lang.String getDescription()
        Gets the description associated with this event.
        Returns:
        the description