I started writing about 6 months ago when I wrote a sitcom episode and I would say that I've been sketch writing for just over 3 months now.
At first I was aiming to get a sketch sold within my first year. However, I now know how few opportunities there are for sketches, so I'm going to give myself a little longer for that - 2 to 3 years.