(t)
Formats a duration as a human-readable string.

  Args:
    t: A duration in seconds.

  Returns:
    A formatted duration string.
Formats a duration as a human-readable string.
Formats a duration as a human - readable string .
def FormatTime(t):
  """Formats a duration as a human-readable string.

  Args:
    t: A duration in seconds.

  Returns:
    A formatted duration string.
  """
  if t < 1:
    return '%dms' % round(t * 1000)
  else:
    return '%.2fs' % t
def FormatTime ( t ) : if t < 1 : return '%dms' % round ( t * 1000 ) else : return '%.2fs' % t