Interface IntervalTimerSupplier

    • Method Detail

      • getStartTimeMillis

        long getStartTimeMillis()
        This will return the start time or an undefined value if never started.
        Returns:
        the start time or an undefined value if never started.
      • getEndTimeMillis

        long getEndTimeMillis()
        Returns the end time if finished, the current time if running, or an undefined value if never started. If this timer corresponds to a snapshot of a timer that is in the StatisticState.ACTIVE state, then this value will reflect the time at which the snapshot was taken.
        Returns:
        the end time if finished, the current time if running, or an undefined value if never started
      • getTimeIntervalMillis

        long getTimeIntervalMillis()
        If state is StatisticState.ACTIVE or StatisticState.FINISHED should always return getEndTimeMillis()-getStartTimeMillis. Otherwise, value is undefined.
        Returns:
        the difference between end time and start time