Modifier and Type | Class and Description |
---|---|
static class |
Timestamp.TimestampResolution |
Modifier and Type | Field and Description |
---|---|
static long |
MICROSECONDS_PER_MILLISECOND |
static long |
MICROSECONDS_PER_SECOND |
static long |
MILLISECONDS_PER_SECOND |
static long |
NANOSECONDS_PER_MICROSECOND |
static long |
NANOSECONDS_PER_MILLISECOND |
static long |
NANOSECONDS_PER_SECOND |
Constructor and Description |
---|
Timestamp() |
Timestamp(double seconds,
Timestamp.TimestampResolution resolution) |
Timestamp(long timestamp,
Timestamp.TimestampResolution resolution) |
Timestamp(Timestamp ts_copy) |
Modifier and Type | Method and Description |
---|---|
void |
fromSeconds(double seconds) |
boolean |
getContainedQuantities(java.util.ArrayList<IQuantity> quantities) |
boolean |
getContainedQuantityNames(java.util.ArrayList<java.lang.String> quantity_names) |
long |
getMicroseconds() |
long |
getMilliseconds() |
long |
getNanoseconds() |
boolean |
getPrintableString(java.lang.StringBuilder printable_string) |
Timestamp.TimestampResolution |
getResolution() |
double |
getSeconds() |
long |
getTimestamp() |
void |
setResolution(Timestamp.TimestampResolution r) |
void |
setTimestamp(long new_timestamp) |
public static final long MILLISECONDS_PER_SECOND
public static final long MICROSECONDS_PER_SECOND
public static final long NANOSECONDS_PER_SECOND
public static final long NANOSECONDS_PER_MICROSECOND
public static final long MICROSECONDS_PER_MILLISECOND
public static final long NANOSECONDS_PER_MILLISECOND
public Timestamp()
public Timestamp(Timestamp ts_copy)
public Timestamp(long timestamp, Timestamp.TimestampResolution resolution)
public Timestamp(double seconds, Timestamp.TimestampResolution resolution)
public long getTimestamp()
public void setTimestamp(long new_timestamp)
public void setResolution(Timestamp.TimestampResolution r)
public Timestamp.TimestampResolution getResolution()
public long getNanoseconds()
public long getMicroseconds()
public long getMilliseconds()
public double getSeconds()
public void fromSeconds(double seconds)
public boolean getPrintableString(java.lang.StringBuilder printable_string)
getPrintableString
in interface IQuantity
public boolean getContainedQuantities(java.util.ArrayList<IQuantity> quantities)
getContainedQuantities
in interface IQuantity
public boolean getContainedQuantityNames(java.util.ArrayList<java.lang.String> quantity_names)
getContainedQuantityNames
in interface IQuantity