Go to the source code of this file.
#define timeradd |
( |
|
a, |
|
|
|
b, |
|
|
|
result |
|
) |
| |
Value:do { \
(result)->tv_sec = (a)->tv_sec + (b)->tv_sec; \
(result)->tv_usec = (a)->tv_usec + (b)->tv_usec; \
if ((result)->tv_usec >= 1000000) \
{ \
++(result)->tv_sec; \
(result)->tv_usec -= 1000000; \
} \
} while (0)
Definition at line 12 of file osal_win32.h.
#define timerisset |
( |
|
tvp | ) |
((tvp)->tv_sec || (tvp)->tv_usec) |
#define timersub |
( |
|
a, |
|
|
|
b, |
|
|
|
result |
|
) |
| |
Value:do { \
(result)->tv_sec = (a)->tv_sec - (b)->tv_sec; \
(result)->tv_usec = (a)->tv_usec - (b)->tv_usec; \
if ((result)->tv_usec < 0) { \
--(result)->tv_sec; \
(result)->tv_usec += 1000000; \
} \
} while (0)
Definition at line 22 of file osal_win32.h.
int osal_gettimeofday |
( |
struct timeval * |
tv, |
|
|
struct timezone * |
tz |
|
) |
| |