#include <yateclass.h>
Public Member Functions | |
| Time () | |
| Time (u_int64_t usec) | |
| Time (const struct timeval *tv) | |
| Time (const struct timeval &tv) | |
| ~Time () | |
| u_int32_t | sec () const |
| u_int64_t | msec () const |
| u_int64_t | usec () const |
| operator u_int64_t () const | |
| Time & | operator= (u_int64_t usec) |
| Time & | operator+= (int64_t delta) |
| Time & | operator-= (int64_t delta) |
| void | toTimeval (struct timeval *tv) const |
Static Public Member Functions | |
| static void | toTimeval (struct timeval *tv, u_int64_t usec) |
| static u_int64_t | fromTimeval (const struct timeval *tv) |
| static u_int64_t | fromTimeval (const struct timeval &tv) |
| static u_int64_t | now () |
| static u_int64_t | msecNow () |
| static u_int32_t | secNow () |
The Time class holds a time moment with microsecond accuracy
|
|
Constructs a Time object from the current time |
|
|
Constructs a Time object from a given time
|
|
|
Constructs a Time object from a timeval structure pointer
|
|
|
Constructs a Time object from a timeval structure
|
|
|
Do-nothing destructor that keeps the compiler from complaining about inlining derivates or members of Time type |
|
|
Convert time in a timeval struct to microseconds
|
|
|
Convert time in a timeval struct to microseconds
|
|
|
Get time in milliseconds
|
|
|
Get the current system time in milliseconds
|
|
|
Get the current system time in microseconds
|
|
|
Conversion to microseconds operator |
|
|
Offsetting operator. |
|
|
Offsetting operator. |
|
|
Assignment operator. |
|
|
Get time in seconds
|
|
|
Get the current system time in seconds
|
|
||||||||||||
|
Fill in a timeval struct from a value in microseconds
|
|
|
Fill in a timeval struct from a value in microseconds
|
|
|
Get time in microseconds
|
1.4.4