Function format

  • Formats the millisecond count to a human-readable time string.

    Returns

    the duration in human readable form

    Parameters

    • ms: number

      the duration in milliseconds

    • options: { decimal?: number; long?: boolean; separator?: string } = {}

      other format options

      • Optional decimal?: number
      • Optional long?: boolean
      • Optional separator?: string

    Returns undefined | string

Generated using TypeDoc