Time an input event occurred in the recording.

interface EventTime {
    seconds: number;
    value: number;
    timescale: number;
}

Properties

seconds: number

The time in seconds. Prefer this field for time math.

value: number

The numerator of the rational time value (value / timescale ≈ seconds; value is the truncated nanosecond count, so EventTime.seconds is authoritative).

This mirrors a 64-bit integer; for extremely long recordings (beyond ~104 days at nanosecond timescale) it can exceed JavaScript's Number.MAX_SAFE_INTEGER, so prefer EventTime.seconds.

timescale: number

The denominator (timescale) of the rational time value.

Generated using TypeDoc