Question: Raymond Hettinger has posted a [snippet](http://code.activestate.com/recipes/413137-call-a-functionmethod-x-times-per-second/#c3) where he uses the sched module available in the standard Python library in order to call functions with a specific rate (N times per second). I wonder if there is an equivalent library in Java.

Answer: 
How about `java.util.Timer`? See [this related answer](https://stackoverflow.com/a/614590/1171043).
How about using the [java.util.Timer class](http://docs.oracle.com/javase/1.4.2/docs/api/java/util/Timer.html)?

You can find the example code [here](http://www.roseindia.net/java/example/java/util/CertainAndRepeatTime.shtml)