public class RealtimeClock extends Clock
RealtimeClock implementation.| Modifier and Type | Method and Description |
|---|---|
RelativeTime |
getEpochOffset()
Returns the relative time of the offset of the epoch of this clock
from the Epoch of the
RealtimeClock. |
RelativeTime |
getResolution()
Returns a newly allocated RelativeTime object that indicates the nominal
interval between ticks.
|
RelativeTime |
getResolution(RelativeTime dest)
Gets the resolution of the clock, the nominal interval between ticks
and stores the result in
dest. |
AbsoluteTime |
getTime()
Creates a new object representing now of this clock.
|
AbsoluteTime |
getTime(AbsoluteTime dest)
Stores now of this clock in
dest. |
getRealtimeClockpublic RelativeTime getEpochOffset()
ClockRealtimeClock.getEpochOffset in class ClockRealtimeClock.
The returned object is associated with this clock.public RelativeTime getResolution()
getResolution in class Clockpublic RelativeTime getResolution(RelativeTime dest)
Clockdest.getResolution in class Clockdest - if dest is null, allocate a new
RelativeTime instance to hold the returned value.dest is not null, it is set to the resolution
object of this. Otherwise a newly allocated object is
returned. The returned object is associated with this clock.public AbsoluteTime getTime()
Clockpublic AbsoluteTime getTime(AbsoluteTime dest)
Clockdest.