Basically I want a function to be called every say, 10 milliseconds.
How can I achieve that in Java?
You could also use a ScheduleExecutorService.