org.apache.jcs.utils.timing
Class SleepUtil
java.lang.Object
org.apache.jcs.utils.timing.SleepUtil
public class SleepUtil
- extends Object
Utility methods to help deal with thread issues.
Method Summary |
static void |
sleepAtLeast(long milliseconds)
Sleep for a specified duration in milliseconds. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SleepUtil
public SleepUtil()
sleepAtLeast
public static void sleepAtLeast(long milliseconds)
- Sleep for a specified duration in milliseconds. This method is a
platform-specific workaround for Windows due to its inability to resolve
durations of time less than approximately 10 - 16 ms.
- Parameters:
milliseconds
- the number of milliseconds to sleep
Copyright © 2002-2012 Apache Software Foundation. All Rights Reserved.