|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.realtime.Clock
javax.realtime.HighResolutionClock
This class provide an high resolution clock. The resolution is the same as the clock speed at which the processor is running, on Pentium processors.
Constructor Summary | |
HighResolutionClock()
|
Method Summary | |
RelativeTime |
clockTickToTime(long clockTicks)
|
void |
clockTickToTime(long ticks,
RelativeTime time)
|
RelativeTime |
getEpochOffset()
Gets the relative time of the offset of the epoch of this Clock from the Epoch. |
RelativeTime |
getResolution()
Return the resolution of the clock -- the interval between ticks. |
AbsoluteTime |
getTime()
Return the current time in a freshly allocated object. |
AbsoluteTime |
getTime(AbsoluteTime time)
Return the current time in an existing object. |
static HighResolutionClock |
instance()
|
void |
setResolution(RelativeTime resolution)
Set the resolution of this. |
Methods inherited from class javax.realtime.Clock |
getRealtimeClock |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public HighResolutionClock()
Method Detail |
public static HighResolutionClock instance()
public RelativeTime getEpochOffset()
Clock
from the Epoch. This clock implementation
returns RelativeTime
(0,0)
in accordance
with the spec.
getEpochOffset
in class Clock
RelativeTime
object
representing the offset of the epoch; the returned object is
associated with this Clock
public RelativeTime getResolution()
getResolution
in class Clock
public void setResolution(RelativeTime resolution)
setResolution
in class Clock
resolution
- The new resolution of this.public AbsoluteTime getTime()
getTime
in class Clock
public AbsoluteTime getTime(AbsoluteTime time)
getTime
in class Clock
time
- The AbsoluteTime object which will have its
time changed.
time
public RelativeTime clockTickToTime(long clockTicks)
public void clockTickToTime(long ticks, RelativeTime time)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |