how do i replace delay with millis in this code

i am suin servotimer2 library. when i compile the code it says 'class ServoTimer2' has no member named 'writeMicroseconds'