Package org.yamcs.simulator.pus
Class PusTime
java.lang.Object
org.yamcs.simulator.pus.PusTime
- All Implemented Interfaces:
Comparable<PusTime>
PUS time used by the simulator is 1 byte for the pfield, 4 bytes seconds and 3 bytes sub-second
The time is started at 0 when the simulator starts and drifts with a constant drift
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
long
deltaMillis
(PusTime other) void
encode
(ByteBuffer bb) boolean
int
hashCode()
boolean
boolean
static PusTime
now()
static PusTime
read
(ByteBuffer bb) shiftByMillis
(int timeShiftMillis) toString()
-
Field Details
-
LENGTH_BYTES
public static final int LENGTH_BYTES- See Also:
-
-
Constructor Details
-
PusTime
public PusTime(int seconds, long fractionalTime)
-
-
Method Details