net.sourceforge.jpcap.util
Class Timeval

java.lang.Object
  |
  +--net.sourceforge.jpcap.util.Timeval

public class Timeval
extends java.lang.Object

POSIX.4 timeval for Java.

Container for java equivalent of c's struct timeval.


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()
Overrides:
toString in class java.lang.Object

getDate

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