How to turn a servo, wait, then turn it the other way (newbie question)

Hi, I am an newbie at arduino, and I have made an automatic fish feeder with one before. However, I am new to c and c++ so I don't really know how to get a timer involved. I can do all the turning and stuff, but I don't know how to get a timer in there. Can someone help?

If the Arduino has nothing else to do, just use the delay() function. Otherwise, study the Using Millis() for Timing tutorial.

Don't try to power the servo from the 5V Arduino output, as that can cause the Arduino to malfunction. Use a separate servo power supply and connect the grounds.

Alright, thanks. I'll try it.