I just had double knee replacement and was back walking with no aids in about6 weeks...so your three weeks might be about right for one hip. AND the thing that helped me most was the fact that I'd been doing a regular exercise routine for a few months before surgery...helped my balance and strength in arms and legs so recovery was really fast.
Talk to your doctor and get an idea of what exercises would help you the most and do those before surgery...