Depending on the operation, the average heart surgery takes three to four hours in the operating room. Your loved ones should know that in order to give you the best care possible, your doctors and nurses will need at least one hour before your surgery and at least one hour after surgery to make you comfortable and settled into your room. Your loved ones will be permitted to visit you roughly six hours from the time you are taken to the pre-operative area.