Function parseTime

  • Converts a timestamp string in the format "mm:ss" or "mm:ss.SSS" to a number in seconds.

    Parameters

    • time: string

      The timestamp string to parse

    Returns number

    The time in seconds as a number