public class Time extends Object
Modifier and Type | Field and Description |
---|---|
static org.slf4j.Logger |
LOG |
Constructor and Description |
---|
Time() |
Modifier and Type | Method and Description |
---|---|
static void |
advanceTime(long ms) |
static long |
currentTimeMillis() |
static int |
currentTimeSecs() |
static boolean |
isSimulating() |
static boolean |
isThreadWaiting(Thread t) |
static void |
sleep(long ms) |
static void |
sleepUntil(long targetTimeMs) |
static void |
startSimulating() |
static void |
stopSimulating() |
public static void startSimulating()
public static void stopSimulating()
public static boolean isSimulating()
public static void sleepUntil(long targetTimeMs) throws InterruptedException
InterruptedException
public static void sleep(long ms) throws InterruptedException
InterruptedException
public static long currentTimeMillis()
public static int currentTimeSecs()
public static void advanceTime(long ms)
public static boolean isThreadWaiting(Thread t)
Copyright © 2016 The Apache Software Foundation. All Rights Reserved.