org.glite.lb

Class Timeval

public class Timeval extends 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
longgetTvSec()
Gets the tvSec value for this Timeval.
longgetTvUsec()
Gets the tvUsec value for this Timeval.
voidsetTvSec(long tvSec)
Sets the tvSec value for this Timeval.
voidsetTvUsec(long tvUsec)
Sets the tvUsec value for this Timeval.

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

getTvUsec

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

Returns: tvUsec in microseconds

setTvSec

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

Parameters: tvSec in seconds

setTvUsec

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

Parameters: tvUsec in microseconds