Answer:
longer for less massive stars.
Explanation:
A star is a giant astronomical or celestial object that is comprised of a luminous sphere of plasma, binded together by its own gravitational force.
It is typically made up of two (2) main hot gas, Hydrogen (H) and Helium (He).
Some of the examples of stars are Canopus, Sun (closest to the Earth), Betelgeus, Antares, Vega etc.
Generally, the time taken for the collapse of an interstellar cloud fragment to the period (time) when a main-sequence star is given birth to, is usually longer for less massive stars.
This ultimately implies that, stars that are not so massive or big in size are transformed from interstellar cloud fragment to a main-sequence star is lesser.