The turrets rotate towards you slowly. You can take advantage of that.
The logic: move to one side of the wall and take one of them out and by then, the other turret is almost fully at you and then you just move to the other side and take it out too before it gets to you.
Saves you time and health to beat the ending. Have fun playing.