SourceForge Jpcap

net.sourceforge.jpcap.util
Class Timeval

java.lang.Object
  extended by net.sourceforge.jpcap.util.Timeval
All Implemented Interfaces:
Serializable

public class Timeval
extends Object
implements Serializable

POSIX.4 timeval for Java.

Container for java equivalent of c's struct timeval.

Version:
$Revision: 1.1 $
Author:
Patrick Charles and Jonas Lehmann
See Also:
Serialized Form
Last modified by:
$Author: esmondpitt $
Last modified at:
$Date: 2008/08/21 02:59:24 $

Constructor Summary
Timeval(long seconds, int microseconds)
           
 
Method Summary
 Date getDate()
          Convert this timeval to a java Date.
 int getMicroSeconds()
           
 long getSeconds()
           
 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 String toString()
Overrides:
toString in class Object

getDate

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


getSeconds

public long getSeconds()

getMicroSeconds

public int getMicroSeconds()

Copyright © Patrick Charles & Jonas Lehmann, 2001; Esmond Pitt, 2008.