|
|
The Time class holds a time moment with microsecond accuracy
inline Time ()
| Time |
Constructs a Time object from the current time
inline Time (unsigned long long usec)
| Time |
Constructs a Time object from a given time
Parameters:
usec | Time in microseconds |
inline Time (struct timeval *tv)
| Time |
Constructs a Time object from a timeval structure
Parameters:
tv | Pointer to the timeval structure |
inline ~Time ()
| ~Time |
Do-nothing destructor that keeps the compiler from complaining about inlining derivates or members of Time type
inline unsigned long sec ()
| sec |
[const]
Get time in seconds
Returns: Time in seconds since the Epoch
inline unsigned long long msec ()
| msec |
[const]
Get time in milliseconds
Returns: Time in milliseconds since the Epoch
inline unsigned long long usec ()
| usec |
[const]
Get time in microseconds
Returns: Time in microseconds since the Epoch
inline operator unsigned long long ()
| long |
[const]
Conversion to microseconds operator
inline Time& operator= (unsigned long long usec)
| operator= |
Assignment operator.
inline Time& operator+= (long long delta)
| operator+= |
Offsetting operator.
inline Time& operator-= (long long delta)
| operator-= |
Offsetting operator.
inline void toTimeval (struct timeval *tv)
| toTimeval |
[const]
Fill in a timeval struct from a value in microseconds
Parameters:
tv | Pointer to the timeval structure |
void toTimeval (struct timeval *tv, unsigned long long usec)
| toTimeval |
[static]
Fill in a timeval struct from a value in microseconds
Parameters:
tv | Pointer to the timeval structure |
usec | Time to convert to timeval |
unsigned long long fromTimeval (struct timeval *tv)
| fromTimeval |
[static]
Convert time in a timeval struct to microseconds
Parameters:
tv | Pointer to the timeval structure |
Returns: Corresponding time in microseconds or zero if tv is NULL
unsigned long long now ()
| now |
[static]
Get the current system time in microseconds
Returns: Time in microseconds since the Epoch
Generated by: kk on nyx on Sat Jun 4 19:29:41 2005, using kdoc 2.0a54. |