|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.catacombae.jfuse.types.system.Timespec
public class Timespec
A Java mapping of struct timespec
.
Field Summary | |
---|---|
int |
nsec
Nanoseconds. |
int |
sec
Seconds. |
Constructor Summary | |
---|---|
Timespec()
|
Method Summary | |
---|---|
void |
print(String prefix,
PrintStream ps)
|
void |
printFields(String prefix,
PrintStream ps)
|
void |
setToDate(Date d)
Sets the fields of this Timespec object to the specified time value, expressed as a Java date. |
void |
setToMillis(long millis)
Sets the fields of this Timespec object to the specified time value, expressed in milliseconds since January 1, 1970, 00:00:00 GMT. |
void |
setToNanos(long nanos)
Sets the fields of this Timespec object to the specified time value, expressed in nanoseconds since January 1, 1970, 00:00:00 GMT. |
void |
setToTimespec(Timespec tv)
Sets the fields of this Timespec object to the specified time value, expressed as another Timespec object. |
Date |
toDate()
|
long |
toMillis()
|
void |
zero()
Zeroes all fields. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public int sec
public int nsec
Constructor Detail |
---|
public Timespec()
Method Detail |
---|
public void setToNanos(long nanos)
nanos
- the new time value, in nanoseconds since January 1, 1970,
00:00:00 GMT.public void setToMillis(long millis)
millis
- the new time value, in milliseconds since January 1, 1970,
00:00:00 GMT.public void setToDate(Date d)
d
- the new time value.public void setToTimespec(Timespec tv)
tv
- the new time value.public void zero()
public long toMillis()
public Date toDate()
public void printFields(String prefix, PrintStream ps)
public void print(String prefix, PrintStream ps)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |