|
![]() |
|||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Clock | |
---|---|
javax.realtime | Jamaica's implementation of the Real-Time Specification for Java. |
Uses of Clock in javax.realtime |
---|
Methods in javax.realtime that return Clock | |
---|---|
Clock |
Timer.getClock()
getClock returns the clock this timer was based on. |
Clock |
HighResolutionTime.getClock()
getClock returns a reference to the clock associated with this. |
static Clock |
Clock.getRealtimeClock()
getRealtimeClock returns the default RealtimeClock. |
Methods in javax.realtime with parameters of type Clock | |
---|---|
AbsoluteTime |
RelativeTime.absolute(Clock clock)
absolute creates a new instance of absolute time for the point in time given by the current time of the given clock. |
abstract AbsoluteTime |
HighResolutionTime.absolute(Clock clock)
absolute converts this time to an absolute time relative to the given clock. |
AbsoluteTime |
AbsoluteTime.absolute(Clock clock)
absolute implements abstract method inherited from HighResolutionTime. |
AbsoluteTime |
RationalTime.absolute(Clock clock,
AbsoluteTime destination)
Deprecated. RTSJ V1.0.1 class RationalTime is deprecated |
AbsoluteTime |
RelativeTime.absolute(Clock clock,
AbsoluteTime destination)
absolute converts this relative time into an instance of absolute time for the point in time given by the current time of the given clock. |
abstract AbsoluteTime |
HighResolutionTime.absolute(Clock clock,
AbsoluteTime dest)
absolute converts this time to an absolute time relative to the given clock. |
AbsoluteTime |
AbsoluteTime.absolute(Clock clock,
AbsoluteTime dest)
absolute implements abstract method inherited from HighResolutionTime. |
RelativeTime |
RelativeTime.relative(Clock clock)
relative returns a new instance of this interval with the given clock association. |
abstract RelativeTime |
HighResolutionTime.relative(Clock clock)
relative returns a new relative time object for this relative to the given clock. |
RelativeTime |
AbsoluteTime.relative(Clock clock)
relative implements abstract method inherited from HighResolutionTime. |
RelativeTime |
RelativeTime.relative(Clock clock,
RelativeTime destination)
relative returns a copy of this interval with the given clock association. |
abstract RelativeTime |
HighResolutionTime.relative(Clock clock,
RelativeTime time)
relative converts this time to a relative time using the given clock. |
RelativeTime |
AbsoluteTime.relative(Clock clock,
RelativeTime dest)
relative implements abstract method inherited from HighResolutionTime. |
static void |
RealtimeThread.sleep(Clock clock,
HighResolutionTime time)
Sleep for a given relative or absolute time using the given clock. |
Constructors in javax.realtime with parameters of type Clock | |
---|---|
AbsoluteTime(AbsoluteTime time,
Clock clock)
Constructor to create an absolute time with millis and nanos taken from an existing absolute time. |
|
AbsoluteTime(Clock clock)
Constructor to create absolute time 0ms, 0ns with given clock association. |
|
AbsoluteTime(Date date,
Clock clock)
Constructor to create an absolute time from a time represented by an instance of Date. |
|
AbsoluteTime(long millis,
int nanos,
Clock clock)
Constructor to create an absolute time from given milli and nano seconds. |
|
OneShotTimer(HighResolutionTime start,
Clock clock,
AbstractAsyncEventHandler handler)
Constructor to create an instance with given time, clock and handler. |
|
OneShotTimer(HighResolutionTime start,
Clock clock,
AsyncEventHandler handler)
Constructor to create an instance with given time, clock and handler. |
|
PeriodicTimer(HighResolutionTime start,
RelativeTime interval,
Clock clock,
AbstractAsyncEventHandler handler)
Constructor to create an instance with given time, interval, clock and handler. |
|
PeriodicTimer(HighResolutionTime start,
RelativeTime interval,
Clock clock,
AsyncEventHandler handler)
Constructor to create an instance with given time, interval, clock and handler. |
|
RelativeTime(Clock clock)
Constructor to create the empty interval bound to the provided clock. |
|
RelativeTime(long ms,
int ns,
Clock clock)
Constructor to create an interval using the provided interval that is bound to the default RealtimeClock. |
|
RelativeTime(RelativeTime time,
Clock clock)
Constructor to create a new RelativeTime object that represents the same interval as the given RelativeTime and that has the same clock association or the clock association provided as a non-null clock parameter. |
|
Timer(HighResolutionTime time,
Clock clock,
AbstractAsyncEventHandler handler)
Constructor to create a timer with the given time, clock and handler. |
|
![]() |
|||||||||
PREV NEXT | FRAMES NO FRAMES |