net.clackrouter.jpcap
Class Timeval
java.lang.Object
net.clackrouter.jpcap.Timeval
- All Implemented Interfaces:
- java.io.Serializable
public class Timeval
- extends java.lang.Object
- implements java.io.Serializable
POSIX.4 timeval for Java.
Container for java equivalent of c's struct timeval.
- See Also:
- Serialized Form
Constructor Summary |
Timeval(long seconds,
int microseconds)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Timeval
public Timeval(long seconds,
int microseconds)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
getDate
public java.util.Date getDate()
- Convert this timeval to a java Date.
getSeconds
public long getSeconds()
getMicroSeconds
public int getMicroSeconds()