Sports Lib API - v17.3.0
    Preparing search index...

    Class DataPause

    A typed metric value. Data objects retain the canonical metric type and unit alongside their value.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    value: number
    displayType?: string
    type: string = 'Pause Time'
    unit: string = 's'
    unitSystem: UnitSystem = UnitSystem.Metric

    Methods

    • Converts to hhh:mmm:ss:ms and rounds its displayed fractional seconds.

      Parameters

      • showDays: boolean = false
      • showSeconds: boolean = true
      • showMilliseconds: boolean = false
      • useColonFormat: boolean = false

        when true, returns compact colon-separated format e.g. 1:04:32

      Returns string

    • Formats an elapsed duration as a stopwatch value, such as 1:36.12.

      Uses a single minute digit for sub-hour durations, pads seconds to two digits, and retains trailing zeroes in the fractional part.

      Parameters

      • fractionDigits: number = 2

      Returns string