Your surgeon will give you an estimate on this time, and it depends on your overall health, the degree of joint damage, the type of hip prosthesis
The range is a few days to a few weeks. Technology such as the navigator ct system can decrease surgical swelling and lead to earlier ambulation. Take friend/family and ask about navigator system. Be well.