No longer than other rocket programs. The speed of development is frankly mind blowing considering it's scale. Regulatory hurdles seem to be the biggest delaying factor. Which goes a long way toward explaining Musk's political activities AFAICT.
> and seems to have a lot of internal issues. Be that poor management, scope creep, or whatever the process looks flawed.
It seems like you're making the mistake of equating SpaceX's hardware-rich development philosophy (i.e. just fly it and see what happens) to NASA's check-it-ten-times-before-flight risk-averse methodology. Different approaches. Russia followed the former, much like SpaceX, and Soyuz is second only to Falcon 9 in number of launches. Arguably, more can be learned, more quickly, and for lower cost following the hardware-rich approach. You just have to deal with the optics and armchair rocket engineers declaring every launch a failure until they aren't.