More information: http://www.cs.berkeley.edu/~mdw/proj/seda/

seda.util
Class MDWUtil

java.lang.Object
  |
  +--seda.util.MDWUtil

public class MDWUtil
extends java.lang.Object

This class provides some generic utility functions.

Author:
Matt Welsh

Field Summary
(package private) static boolean nativeLibraryLoaded
           
(package private) static java.lang.Object nativeLibraryLoadLock
           
 
Constructor Summary
MDWUtil()
           
 
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
 

Field Detail

nativeLibraryLoaded

static boolean nativeLibraryLoaded

nativeLibraryLoadLock

static java.lang.Object nativeLibraryLoadLock
Constructor Detail

MDWUtil

public MDWUtil()
Method Detail

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.

More information: http://www.cs.berkeley.edu/~mdw/proj/seda/