Options
All
  • Public
  • Public/Protected
  • All
Menu

A convenience class for storing a pair of instants that define a time interval.

since

1.0

Hierarchy

  • TimeInterval

Index

Constructors

constructor

  • new TimeInterval(startTime: number, endTime: number): TimeInterval
  • Constructs a new time interval.

    since

    1.0

    Parameters

    • startTime: number

      the start time of the interval

    • endTime: number

      the end time of the interval

    Returns TimeInterval

Methods

equals

  • Parameters

    Returns boolean

getDuration

  • getDuration(): number
  • Returns the duration of the interval.

    since

    1.0

    Returns number

    the duration

getEndTime

  • getEndTime(): number
  • Returns the end time of the interval.

    since

    1.0

    Returns number

    the end time

getStartTime

  • getStartTime(): number
  • Returns the start time of the interval.

    since

    1.0

    Returns number

    the start