Remind me to chew MarkusKidd out sometime for recommending the sleeper hack. Not only is it not accurate, but it's likely to get you into extremely hot water.
If you need a Hi-Res timer, you can try
GAGETimer. It gives nanosecond precision on Java 1.5, access to the Hi-Res Multimedia Timer on Windows (via JNI), 1ms precision on other platforms, and a reasonable attempt to allow for good timing on Windows if the DLL is missing. If you need access to a hi-res timer on other platforms, you can always extend it via the "NativeTimer" interface.
I don't know if that will solve your problem, but it might be an option worth checking into. My only warning is to make sure you calculate the number of ticks instead of assuming their resolution. Multimedia timers on Windows are notorious for having different resolutions on machines with a different number of processors.
Edit: Nevermind on sacking MarkusKidd. I hadn't realized that someone had revived a
two year old thread. I think the original poster has probably figured something out by now.
