Timers

The API gives you two methods to have a function called periodically: