How to use delay() in followline()

well I mean my robot does not stop after delay(); like if i do:

void turnLeft()                      // Sharp Left turn function
{ act="turnLeft";
  servoLeft.writeMicroseconds(1300);         // Left wheel clockwise
  servoRight.writeMicroseconds(1300);        // Right wheel clockwise
  delay(1000);
  
}

then it does not stop after 1 second