Class TimeRange


  • public class TimeRange
    extends java.lang.Object
    A TimeRange is the range between two times in milliseconds
    • Constructor Summary

      Constructors 
      Constructor Description
      TimeRange​(long referenceTimeInMs, long errorMarginInMs)
      Instantiates a TimeRange referring to a reference time with an allowed error margin
    • Constructor Detail

      • TimeRange

        public TimeRange​(long referenceTimeInMs,
                         long errorMarginInMs)
        Instantiates a TimeRange referring to a reference time with an allowed error margin
        Parameters:
        referenceTimeInMs - the reference time in milliseconds that this TimeRange is referring to
        errorMarginInMs - the allowable error margin in milliseconds
    • Method Detail

      • getStartTimeInMs

        public long getStartTimeInMs()
        Returns:
        the start time in Secs that this TimeRange is referring to
      • getEndTimeInMs

        public long getEndTimeInMs()
        Returns:
        the end time in Secs that this TimeRange is referring to
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object