Modifier and Type
Field and Description
Methods inherited from class java.lang.
Object clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public long sleep(long time,
Description copied from interface: Clock
Put the current thread to sleep for the time specified.
Note that this may return
before the time specified has expired (i.e. the thread
may wake spuriously). This is why we return how much time is remaining, in the units specified.
time - the amount of time to sleep for.
unit - the unit time is measured in.
Returns: the amount of time left in the wait period (i.e. time-timeSlept).
- if the thread is interrupted during sleep.
Copyright © 2010-2016 Stardog Union. All Rights Reserved.