How to use delay() in followline()

It is a boe bot with qti sensors and I am trying to turn it 90 degrees, From internet I thought I could use delay after the sevro speed(like in the function above) but that is not working