javax.realtime
Class RealtimeClock

java.lang.Object
  |
  +--javax.realtime.Clock
        |
        +--javax.realtime.RealtimeClock

public class RealtimeClock
extends Clock

RealtimeClock implements a real-time clock.


Field Summary
private  javax.realtime.RelativeTime resolution
           
 
Fields inherited from class javax.realtime.Clock
 
Constructor Summary
RealtimeClock()
          Create an instance of RealtimeClock.
RealtimeClock(long millis, int nanos)
          Create an instance of RealtimeClock using given parameters.
 
Method Summary
 javax.realtime.RelativeTime getResolution()
          Return the resolution of this RealtimeClock instance.
 void getTime(javax.realtime.AbsoluteTime time)
          Returns the time in an AbstractTime.
protected static long getTimeInC()
           
 void setResolution(javax.realtime.RelativeTime res)
          Sets the resolution of this RealtimeClock instance.
 
Methods inherited from class javax.realtime.Clock
getRealtimeClock, getTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

resolution

private javax.realtime.RelativeTime resolution
Constructor Detail

RealtimeClock

public RealtimeClock()
Create an instance of RealtimeClock.


RealtimeClock

public RealtimeClock(long millis,
                     int nanos)
Create an instance of RealtimeClock using given parameters.

Method Detail

getResolution

public javax.realtime.RelativeTime getResolution()
Return the resolution of this RealtimeClock instance.

Specified by:
getResolution in class Clock
Returns:
An instance of RelativeTime representing the resolution of this.

setResolution

public void setResolution(javax.realtime.RelativeTime res)
Sets the resolution of this RealtimeClock instance.

Specified by:
setResolution in class Clock

getTimeInC

protected static long getTimeInC()

getTime

public void getTime(javax.realtime.AbsoluteTime time)
Returns the time in an AbstractTime.

Specified by:
getTime in class Clock
Parameters:
time - The instance of AbsoluteTime object which will have its time changed. If null, then nothing happens.