|
timeval | operator+ (const timeval &t1, const timeval &t2) |
| Addition operator.
|
|
timeval | operator- (const timeval &t1, const timeval &t2) |
| Subtraction operator.
|
|
timeval & | operator+= (timeval &lhs, const timeval &rhs) |
| Addition assignment operator.
|
|
timeval & | operator-= (timeval &lhs, const timeval &rhs) |
| Subtraction assignment.
|
|
timeval | operator* (const timeval &op1, int op2) |
| Multiplication by an integer.
|
|
timeval | operator* (int op1, const timeval &op2) |
| Multiplication by an integer.
|
|
timeval | operator/ (const timeval &op1, int op2) |
| Division by an integer.
|
|
bool | operator== (const timeval &t1, const timeval &t2) |
| Equality operator.
|
|
bool | operator< (const timeval &t1, const timeval &t2) |
| "Less than" operator
|
|
bool | operator> (const timeval &t1, const timeval &t2) |
| "Greater than" operator
|
|
bool | operator>= (const timeval &t1, const timeval &t2) |
| "Greater or equal than" operator
|
|
bool | operator<= (const timeval &t1, const timeval &t2) |
| "Less or equal than" operator
|
|
bool | operator!= (const timeval &t1, const timeval &t2) |
| "Not equal" operator
|
|
LONGLONG | usec64 (const timeval &tv) |
| Conversion to 64-bit microseconds.
|
|
timeval | fromusec (LONGLONG us) |
| Conversion from 64-bit microseconds.
|
|
double | secd (const timeval &tv) |
| Conversion to floating-point seconds.
|
|
timeval | fromsystime (const SYSTEMTIME &st) |
| Convert from UTC system time to Unix time scale (UTC form 01/01/70)
|
|
void | tosystime (const timeval &tv, SYSTEMTIME *st) |
| Convert from timeval format to SYSTEMTIME format.
|
|
void | tolocaltime (const timeval &tv, SYSTEMTIME *st) |
| Convert to local time (in a SYSTEMTIME structure)
|
|
timeval | zone_bias () |
| Return time zone bias.
|
|
void | normalize (timeval &tv) |
| Following an arithmetic operation, brings timeval structure to a canonical form where tv_usec is less than 1000000 and has the same sign as tv_sec member.
|
|
timeval | fromdouble (double d) |
| Conversion from floating-point seconds.
|
|
inline ::std::ostream & | operator<< (::std::ostream &os, const timeval &tv) |
|
Operations on timeval structure.
(c) Mircea Neacsu 2002. All rights reserved.