Collapse into a star like our Sun takes about 50 million years. The collapse of a very high mass protostar might take only a million years while smaller stars can take more than a hundred million years to form.