org.glite.lb
Class Timeval

java.lang.Object
  extended by org.glite.lb.Timeval

public class Timeval
extends java.lang.Object

This class represents the timestamp in this form: tvSec.tvUsec. It consists of two parts:

  1. tvSec - represents time in seconds
  2. tvUsec - represents time in microseconds
For example: 1240415967.234999


Constructor Summary
Timeval()
           
Timeval(long tvSec, long tvUsec)
          Creates an instance of Timeval.
 
Method Summary
 long getTvSec()
          Gets the tvSec value for this Timeval.
 long getTvUsec()
          Gets the tvUsec value for this Timeval.
 void setTvSec(long tvSec)
          Sets the tvSec value for this Timeval.
 void setTvUsec(long tvUsec)
          Sets the tvUsec value for this Timeval.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Timeval

public Timeval()

Timeval

public Timeval(long tvSec,
               long tvUsec)
Creates an instance of Timeval.

Parameters:
tvSec - in seconds
tvUsec - in microseconds
Method Detail

getTvSec

public long getTvSec()
Gets the tvSec value for this Timeval.

Returns:
tvSec in seconds

setTvSec

public void setTvSec(long tvSec)
Sets the tvSec value for this Timeval.

Parameters:
tvSec - in seconds

getTvUsec

public long getTvUsec()
Gets the tvUsec value for this Timeval.

Returns:
tvUsec in microseconds

setTvUsec

public void setTvUsec(long tvUsec)
Sets the tvUsec value for this Timeval.

Parameters:
tvUsec - in microseconds