To get an actual diagnosis, it was about 1.5 years. My pain had gotten so bad that they put a rush on my referral to the rheumatologist. But it took me about 3 months to convince my doctor to do that, and another 3 months before I got an appointment. I know that's not terrible in comparison to others, but it felt like an eternity.
My pain dates back at least 10 years, but didn't become chronic until the last two years.