Time used for timeout values.
More...
Inherits timeval.
|
| | time (long sec=0l, long usec=0l) throw () |
| | Creates a new time with sec seconds and usec microseconds. More...
|
| |
| long | sec () const throw () |
| | Gets the number of seconds. More...
|
| |
| long | usec () const throw () |
| | Gets the number of microseconds. More...
|
| |
| void | sec (long s) throw () |
| | Sets the number of seconds. More...
|
| |
| void | usec (long u) throw () |
| | Sets the number of microseconds. More...
|
| |
Time used for timeout values.
This timeout is compose of seconds and microseconds.
- Examples
- bench.cpp, mixed-way.cpp, and test-time.cpp.
◆ time()
| 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. |
References sec(), and usec().
◆ sec() [1/2]
| long eventxx::time::sec |
( |
| ) |
const |
| throw | ( | |
| ) | | |
|
inline |
Gets the number of seconds.
- Returns
- Number of seconds.
- Examples
- bench.cpp.
Referenced by time().
◆ sec() [2/2]
| void eventxx::time::sec |
( |
long |
s | ) |
|
| throw | ( | |
| ) | | |
|
inline |
Sets the number of seconds.
- Parameters
-
◆ usec() [1/2]
| long eventxx::time::usec |
( |
| ) |
const |
| throw | ( | |
| ) | | |
|
inline |
◆ usec() [2/2]
| void eventxx::time::usec |
( |
long |
u | ) |
|
| throw | ( | |
| ) | | |
|
inline |
Sets the number of microseconds.
- Parameters
-
The documentation for this struct was generated from the following file: