How to spawn an object every two seconds?

I had an idea about a timer, but maybe there is an easier way?