There's a function ServerScheduler::scheduleDelayedRepeatingTask() (accessible through Server::getScheduler()) for that with the parameters being the task, the delay, and the length between each execution respectively. See this page on how to schedule tasks.