Redefine a timeval that has all fields signed so calculations will be simplified on rare systems that define timeval with unsigned fields.
More...
|
(Note that these are not member symbols.)
|
timeval_T * | timeval_now (timeval_T *t) |
| Get the current time.
|
|
timeval_T * | timeval_sub_interval (timeval_T *t, timeval_T *interval) |
| Subtract an interval to a timeval, it ensures that result is never negative.
|
|
timeval_T * | timeval_sub (timeval_T *res, timeval_T *older, timeval_T *newer) |
|
timeval_T * | el_timeval_add (timeval_T *res, timeval_T *base, timeval_T *t) |
|
timeval_T * | timeval_add_interval (timeval_T *t, timeval_T *interval) |
|
timeval_T * | timeval_from_double (timeval_T *t, double x) |
|
timeval_T * | timeval_from_milliseconds (timeval_T *t, milliseconds_T milliseconds) |
|
timeval_T * | timeval_from_seconds (timeval_T *t, long seconds) |
|
milliseconds_T | timeval_to_milliseconds (timeval_T *t) |
|
long | timeval_to_seconds (timeval_T *t) |
|
int | timeval_is_positive (timeval_T *t) |
|
void | timeval_limit_to_zero_or_one (timeval_T *t) |
| Be sure timeval is not negative.
|
|
int | timeval_cmp (timeval_T *t1, timeval_T *t2) |
| Compare time values.
|
|
int | timeval_div_off_t (off_t n, timeval_T *t) |
|
#define | timeval_copy(dst, src) copy_struct(dst, src) |
|
Redefine a timeval that has all fields signed so calculations will be simplified on rare systems that define timeval with unsigned fields.
- Bug
- 923: Assumes time_t values fit in long. (This structure is used for both timestamps and durations.)