The musical element governing note length is duration (also called note value or time value).
Duration, combined with pitch, creates rhythm and melody.