Taking care of a toddler after a surgery

How long did it take for you to be able to care for your child without any help after having surgery? I am having a surgery on my hip due a fracture and im worried. Im a single parent with little to no help and I have a two and half year old.