Constructor and Description |
---|
RealTimeClock() |
Modifier and Type | Method and Description |
---|---|
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 double getTime()
getTime
in interface IClock
IClock.getTime()
public double waitForChange() throws java.lang.InterruptedException
IClock
waitForChange
in interface IClock
java.lang.InterruptedException
IClock.waitForChange()
public double waitForTime(double time) throws java.lang.InterruptedException
IClock
waitForTime
in interface IClock
java.lang.InterruptedException
IClock.waitForTime(double)
public double getTimeShift()
getTimeShift
in interface IClock
public void setTimeShift(double shift)
IClock
setTimeShift
in interface IClock