I have an application that uses Thread.sleep(msUntilActionNeeded);
. The variable is set to the number of ms until I want the program to begin an operation which coincides with the time of day, so it is not critical. Even being off by 5000ms would not be a problem, so a 10ms resolution is overkill.
The (minor) problem is that Windows reports A program or service has requested a timer resolution smaller than the platform maximum timer resolution.
There is no need to have the timer resolution so small. I have rounded the ms to the nearest multiple of 10ms with no apparent effect.
How can I change my program or JVM settings to make it so the requested timer resolution is not so small?