Initial collapse takes less than 100,000 years. Disk radiates away energy and cools off. Instabilities in the collapsing, rotating cloud cause local regions to begin to contract gravitationally. Large concentrations of gas orbiting the protostar may be unstable and gravitationally collapse to form a double star. Smaller local regions of condensation form proto-planets by accretion of planetesimals.
Accretion continues until the particles get to the size of boulders or small asteroids.
Click on the images below to enlarge them. Run-away growth occurs. Sun's energy keeps ice as vapor at closer distances, but at great enough distance ice particles form and are accreted. Accretion of planetesimals to form planets requires a few 100,000s to about 20 million years, with the outermost protoplanets taking the longest to form. PSN is swept clear of gas.