eventxx::time Struct Reference

Time used for timeout values. More...

List of all members.

Public Member Functions

 time (long sec=0l, long usec=0l) throw ()
 Creates a new time with sec seconds and usec microseconds.
long sec () const throw ()
 Gets the number of seconds.
long usec () const throw ()
 Gets the number of microseconds.
void sec (long s) throw ()
 Sets the number of seconds.
void usec (long u) throw ()
 Sets the number of microseconds.


Detailed Description

Time used for timeout values.

This timeout is compose of seconds and microseconds.

Examples:

bench.cpp, mixed-way.cpp, and test-time.cpp.


Constructor & Destructor Documentation

eventxx::time::time ( long  sec = 0l,
long  usec = 0l 
) throw () [inline]

Creates a new time with sec seconds and usec microseconds.

Parameters:
sec Number of seconds.
usec Number of microseconds.


Member Function Documentation

void eventxx::time::sec ( long  s  )  throw () [inline]

Sets the number of seconds.

Parameters:
s Number of seconds.

long eventxx::time::sec (  )  const throw () [inline]

Gets the number of seconds.

Returns:
Number of seconds.
Examples:
bench.cpp.

void eventxx::time::usec ( long  u  )  throw () [inline]

Sets the number of microseconds.

Parameters:
u Number of microseconds.

long eventxx::time::usec (  )  const throw () [inline]

Gets the number of microseconds.

Returns:
Number of microseconds.
Examples:
bench.cpp, and test-time.cpp.


The documentation for this struct was generated from the following file:

Generated on Thu Apr 16 21:08:36 2009 for eventxx by  doxygen 1.5.8