|
Re: How do I use interrupt in Java?
In Java the simplest thing to do is create a high priority thread that runs in a loop calling sleep (or WPILibj's Timer.delay) for 25 ms.
You can also use the java.util.Timer class for more complex activities. scheduleAtFixedRate() may be something to look at.
|