net.clackrouter.jpcap
Class Timeval

java.lang.Object
  extended by 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)
           
 
Method Summary
 java.util.Date getDate()
          Convert this timeval to a java Date.
 int getMicroSeconds()
           
 long getSeconds()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Timeval

public Timeval(long seconds,
               int microseconds)
Method Detail

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()