| Modifier and Type | Method and Description |
|---|---|
long |
currentTimeMillis() |
long |
currentTimeNanos() |
long |
sleep(long time,
TimeUnit unit)
Put the current thread to sleep for the time specified.
|
public static final Clock INSTANCE
public long currentTimeMillis()
currentTimeMillis in interface Clockpublic long currentTimeNanos()
currentTimeNanos in interface Clockpublic long sleep(long time,
TimeUnit unit)
throws InterruptedException
Clocksleep in interface Clocktime - the amount of time to sleep for.unit - the unit time is measured in.InterruptedException - if the thread is interrupted during sleep.Copyright © 2010-2016 Stardog Union. All Rights Reserved.