add Misc.sleep()
authoradam <adam@megacz.com>
Thu, 5 Jul 2007 01:31:36 +0000 (01:31 +0000)
committeradam <adam@megacz.com>
Thu, 5 Jul 2007 01:31:36 +0000 (01:31 +0000)
darcs-hash:20070705013136-5007d-c92d1d856305323b29409118b59c0bd1fe5d1e2c.gz

src/org/ibex/util/Misc.java

index 5c69c99..604e795 100644 (file)
@@ -25,5 +25,14 @@ public final class Misc {
         public Object nextElement() { return e1.hasMoreElements() ? e1.nextElement() : e2.nextElement(); }
     }
 
+    public static void sleep(long time) {
+        try {
+            Thread.sleep(time);
+        } catch (Exception e) {
+            Log.warn(Misc.class, "Thread.sleep() threw an exception");
+            Log.warn(Misc.class, e);
+        }
+    }
+
 }