mdw.util
Class MDWUtil
java.lang.Object
|
+--mdw.util.MDWUtil
- public class MDWUtil
- extends java.lang.Object
This class provides some generic utility functions.
- Author:
- Matt Welsh
Method Summary |
(package private) static void |
()
|
static long |
currentTimeUsec()
Returns the current time in microseconds. |
static java.lang.String |
format(double val)
Format decimals to 4 digits only |
(package private) static void |
loadNativeLibrary()
|
static void |
sleep(long delay)
Cause the current thread to sleep for the given number of
milliseconds. |
static void |
usleep(long delay)
Cause the current thread to sleep for the given number of
microseconds. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
nativeLibraryLoaded
static boolean nativeLibraryLoaded
nativeLibraryLoadLock
static java.lang.Object nativeLibraryLoadLock
MDWUtil
public MDWUtil()
loadNativeLibrary
static void loadNativeLibrary()
static void ()
currentTimeUsec
public static long currentTimeUsec()
- Returns the current time in microseconds.
usleep
public static void usleep(long delay)
- Cause the current thread to sleep for the given number of
microseconds. Returns immediately if the thread is interrupted, but
does not throw an exception.
format
public static java.lang.String format(double val)
- Format decimals to 4 digits only
sleep
public static void sleep(long delay)
- Cause the current thread to sleep for the given number of
milliseconds. Returns immediately if the thread is interrupted, but
does not throw an exception.