|
NetSurf
|
BSD style timeval macros. More...
#include <sys/time.h>Go to the source code of this file.
Macros | |
| #define | timerclear(a) ((a)->tv_sec = (a)->tv_usec = 0) |
| #define | timerisset(a) ((a)->tv_sec || (a)->tv_usec) |
| #define | timeradd(a, aa, result) |
| #define | timersub(a, aa, result) |
| #define | timercmp(a, aa, cmp) |
BSD style timeval macros.
BSD added macros for manipulating timeval which have become standard on modern c libraries but for compatability where they are missing it is necessary to provide fallbacks.
Definition in file sys_time.h.
| #define timeradd | ( | a, | |
| aa, | |||
| result | |||
| ) |
| #define timerclear | ( | a | ) | ((a)->tv_sec = (a)->tv_usec = 0) |
Definition at line 34 of file sys_time.h.
| #define timercmp | ( | a, | |
| aa, | |||
| cmp | |||
| ) |
Definition at line 66 of file sys_time.h.
| #define timerisset | ( | a | ) | ((a)->tv_sec || (a)->tv_usec) |
Definition at line 38 of file sys_time.h.