The length of surgery for a strangulated hernia can vary greatly, typically ranging from 1 to 3 hours. Factors influencing this include the complexity of the hernia, the patient’s overall health, and the chosen surgical approach.