public class Util extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
sleep(long ms)
Sleeps for the specified number of milliseconds.
|
static void |
sleepAfter(long startTime,
long ms)
Sleeps for the specified number of milliseconds after the given system
time in milliseconds.
|
public static void sleep(long ms)
ms - How long to sleeppublic static void sleepAfter(long startTime,
long ms)
startTime - System time in milliseconds to sleep afterms - How long after startTime to sleepCopyright © 2010–2017 oshi. All rights reserved.