How long does the surgery take?

Not too long. A typical ICD implantation lasts an hour or two.