public class WrappedClock extends java.lang.Object implements IClock
Constructor and Description |
---|
WrappedClock(IClock clock) |
Modifier and Type | Method and Description |
---|---|
IClock |
getMasterClock() |
double |
getTime() |
double |
getTimeShift() |
void |
setTimeShift(double shift)
sets a constant for the clock to be adjusted by.
|
double |
waitForChange()
wait for any change of time
|
double |
waitForTime(double time)
wait for this time to be reached, returning the current time
|
public WrappedClock(IClock clock)
public double getTimeShift()
getTimeShift
in interface IClock
public void setTimeShift(double shift)
IClock
setTimeShift
in interface IClock
public double waitForChange() throws java.lang.InterruptedException
IClock
waitForChange
in interface IClock
java.lang.InterruptedException
public double waitForTime(double time) throws java.lang.InterruptedException
IClock
waitForTime
in interface IClock
java.lang.InterruptedException
public IClock getMasterClock()