ixfx
    Preparing search index...

    Class IntervalTracker

    A Tracker that tracks interval between calls to mark()

    Hierarchy (View Summary)

    Index

    Accessors

    • get elapsed(): number

      Returns the elapsed time, in milliseconds since the instance was created

      Returns number

    • get size(): number

      Returns number of recorded values (this can include the initial value)

      Returns number

    Constructors

    Methods

    • Difference between last value and initial. Eg. if last value was 10 and initial value was 5, 5 is returned (10 - 5) If either of those is missing, undefined is returned

      Returns undefined | number

    • Adds a value, returning computed result.

      At this point, we check if the buffer is larger than resetAfterSamples. If so, reset() is called. If not, we check sampleLimit. If the buffer is twice as large as sample limit, trimStore() is called to take it down to sample limit, and onTrimmed() is called.

      Parameters

      • ...p: number[]

      Returns NumberTrackerResults

    Properties

    debug: boolean
    id: string
    lastMark: number = 0
    max: number = Number.MIN_SAFE_INTEGER
    min: number = Number.MAX_SAFE_INTEGER
    timestamps: number[]
    total: number = 0
    values: number[]