net.sourceforge.jpcap.util
Class Timeval

java.lang.Object
  extended bynet.sourceforge.jpcap.util.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.
 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()

getDate

public java.util.Date getDate()
Convert this timeval to a java Date.