How do I use timers to repeat a function, and what else r they for?

How can I use a timer to repeat a function, and what else do timers “do”