org.multiverse.utils
Class Bugshaker

java.lang.Object
  extended by org.multiverse.utils.Bugshaker

public class Bugshaker
extends Object

Contains some utility functions for shaking out bugs.

Author:
Peter Veentjer

Method Summary
static void shakeBugs()
          Delays a random amount of time.
static void sleepUs(long delayUs)
          Delays a number of microseconds.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

shakeBugs

public static void shakeBugs()
Delays a random amount of time.


sleepUs

public static void sleepUs(long delayUs)
Delays a number of microseconds. Having a delay smaller than a microsecond doesn't provide value since the minimum delay is a few microseconds.

Parameters:
delayUs - the number of microseconds to delay.


Copyright © 2008-2010 Multiverse. All Rights Reserved.