Tor
0.4.7.0-alpha-dev
|
Declarations for timeval-related macros that some platforms are missing. More...
Go to the source code of this file.
Macros | |
#define | timeradd(tv1, tv2, tvout) |
#define | timersub(tv1, tv2, tvout) |
#define | timercmp(tv1, tv2, op) |
Declarations for timeval-related macros that some platforms are missing.
Definition in file timeval.h.
#define timeradd | ( | tv1, | |
tv2, | |||
tvout | |||
) |
Replacement for timeradd on platforms that do not have it: sets tvout to the sum of tv1 and tv2.
#define timercmp | ( | tv1, | |
tv2, | |||
op | |||
) |
Replacement for timercmp on platforms that do not have it: returns true iff the relational operator "op" makes the expression tv1 op tv2 true.
Note that while this definition should work for all boolean operators, some platforms' native timercmp definitions do not support >=, <=, or ==. So don't use those.
#define timersub | ( | tv1, | |
tv2, | |||
tvout | |||
) |
Replacement for timersub on platforms that do not have it: sets tvout to tv1 minus tv2.