def pad(TIME: str, MS: bool) -> str:
	"""
	Pad a time with blank spaces if it doesnt contain milliseconds for
	output formatting.

	>>> pad("59:54.397", True)
	'59:54.397'
	>>> pad("3:42", True)
	'3:42    '
	>>> pad("1:39", False)
	'1:39'
	"""
	if not MS:
		return TIME
	return f"{TIME}    " if "." not in TIME else TIME