parameters: (t)
docstring: Formats a duration as a human-readable string.
  
    Args:
      t: A duration in seconds.
  
    Returns:
      A formatted duration string.
docstring_summary: Formats a duration as a human-readable string.
docstring_tokens: Formats a duration as a human - readable string .
function: 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
function_tokens: def FormatTime ( t ) : if t < 1 : return '%dms' % round ( t * 1000 ) else : return '%.2fs' % t