code: def make_time(h=0, m=0, s=0, ms=0, frames=None, fps=None):
      
      if frames is None and fps is None:
          return times_to_ms(h, m, s, ms)
      elif frames is not None and fps is not None:
          return frames_to_ms(frames, fps)
      else:
          raise ValueError("Both fps and frames must be specified")
docs: Convert time to milliseconds.
  
      See :func:`pysubs2.time.times_to_ms()`. When both frames and fps are specified,
      :func:`pysubs2.time.frames_to_ms()` is called instead.
  
      Raises:
          ValueError: Invalid fps, or one of frames/fps is missing.
  
      Example:
          >>> make_time(s=1.5)
          1500
          >>> make_time(frames=50, fps=25)
          2000