Interface Duration

  • All Superinterfaces:
    Statistic
    All Known Implementing Classes:
    MillisTimeDuration, NanoDuration

    public interface Duration
    extends Statistic
    Class that tracks the duration of a task. TODO: add support for different time units?
    Since:
    0.6.0
    Author:
    Erich Schubert
    • Method Detail

      • begin

        Duration begin()
        Start the timer.
      • getBegin

        long getBegin()
        Get the begin of the interval.
        Returns:
        Begin
      • getEnd

        long getEnd()
        Get the end of the interval.
        Returns:
        End
      • getDuration

        long getDuration()
        Get the duration of the interval.
        Returns:
        Duration