I fractured the heel of my foot and dr. Repaired with hardware. How long before it stops hurting?

Up to a year. Fracture of the heel bone with surgical repair can take up to a year or longer to heal and stop hurting.
Months. Their are a variety of heel fractures. The long term prognosis depends on how well it could be put back together, patient's ability to heal and whether it was into the joint. If all goes well, most discomfort will resolve in 4-6 months. If the fracture is severe and/or into the joint, there will likely be some permanent, residual discomfort. Discuss with your surgeon. Dr l.