public class Clock
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Clock.Chronometer |
static class |
Clock.WatchDog |
Modifier and Type | Field and Description |
---|---|
private static long |
offset |
private static long |
syncError |
Constructor and Description |
---|
Clock() |
Modifier and Type | Method and Description |
---|---|
static long |
currentMicros()
Get the clock value:
|
static long |
getError()
Clock error getter
|
static long |
getOffset()
Clock offset getter.
|
static void |
setOffset(long of,
long err)
Set the differential offset (and estimated error)
to correct the clock synchronization.
|
public static long currentMicros()
public static long getError()
public static long getOffset()
public static void setOffset(long of, long err)
of
- The offset in microsecondserr
- The absolute error in microseconds