forked from MagicBane/Server
Project cleanup pre merge.
This commit is contained in:
@@ -14,30 +14,26 @@ import org.pmw.tinylog.Logger;
|
||||
|
||||
public abstract class ThreadUtils {
|
||||
|
||||
private ThreadUtils() {
|
||||
}
|
||||
private ThreadUtils() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Force the current thread to sleep for <i>sec</i> seconds and <i>ms</i>
|
||||
* milliseconds.
|
||||
*
|
||||
*
|
||||
*/
|
||||
public static void sleep(int sec, long ms) {
|
||||
try {
|
||||
Thread.sleep((1000L * sec) + ms);
|
||||
} catch (InterruptedException e) {
|
||||
Logger.error( e.toString());
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Force the current thread to sleep for <i>sec</i> seconds and <i>ms</i>
|
||||
* milliseconds.
|
||||
*/
|
||||
public static void sleep(int sec, long ms) {
|
||||
try {
|
||||
Thread.sleep((1000L * sec) + ms);
|
||||
} catch (InterruptedException e) {
|
||||
Logger.error(e.toString());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Force the current thread to sleep for <i>ms</i> milliseconds.
|
||||
*
|
||||
*
|
||||
*/
|
||||
public static void sleep(long ms) {
|
||||
ThreadUtils.sleep(0, ms);
|
||||
}
|
||||
/**
|
||||
* Force the current thread to sleep for <i>ms</i> milliseconds.
|
||||
*/
|
||||
public static void sleep(long ms) {
|
||||
ThreadUtils.sleep(0, ms);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user