Is there any equivalent function on OS X to SetTimer in Windows? I'm using C++.
So I'm writing a plugin for some software, and I need to have a funtion called periodically. On Windows I just pass the address of the function to SetTimer() and it will be called at a given interval. Is there an easy way to do this on OS X? It should be as minimalistic as possible. I didn't really find anything nonfancy on the web, there was something about a huge framework and another solution using a second thread that is sleeping the other time, but I think there should be an easier way.