Go to the source code of this file.
◆ _INCL_TIME_H
◆ timeradd
#define timeradd |
( |
|
tvp1, |
|
|
|
tvp2 |
|
) |
| |
Value: do { \
(tvp1)->tv_sec += (tvp2)->tv_sec; \
(tvp1)->tv_usec += (tvp2)->tv_usec; \
} while (0)
Definition at line 123 of file time.h.
◆ timerclear
#define timerclear |
( |
|
tvp | ) |
(tvp)->tv_sec = (tvp)->tv_usec = 0 |
◆ timerfix
◆ timerfix1
Value: while ((tvp)->tv_usec < 0) { \
(tvp)->tv_sec--; \
(tvp)->tv_usec += 1000000; \
}
Definition at line 99 of file time.h.
◆ timerfix2
Value: while ((tvp)->tv_usec > 1000000) { \
(tvp)->tv_sec++; \
(tvp)->tv_usec -= 1000000; \
}
Definition at line 104 of file time.h.
◆ timersub
#define timersub |
( |
|
tvp1, |
|
|
|
tvp2 |
|
) |
| |
Value: do { \
(tvp1)->tv_sec -= (tvp2)->tv_sec; \
(tvp1)->tv_usec -= (tvp2)->tv_usec; \
} while (0)
Definition at line 116 of file time.h.
◆ timespecadd
#define timespecadd |
( |
|
tsp1, |
|
|
|
tsp2 |
|
) |
| |
Value: do { \
(tsp1)->tv_sec += (tsp2)->tv_sec; \
(tsp1)->tv_nsec += (tsp2)->tv_nsec; \
} while (0)
Definition at line 154 of file time.h.
◆ timespecclear
#define timespecclear |
( |
|
tsp | ) |
(tsp)->tv_sec = (tsp)->tv_nsec = 0 |
◆ timespecfix
◆ timespecfix1
Value: while ((tsp)->tv_nsec < 0) { \
(tsp)->tv_sec--; \
(tsp)->tv_nsec += 1000000000; \
}
Definition at line 134 of file time.h.
◆ timespecfix2
Value: while ((tsp)->tv_nsec > 1000000000) { \
(tsp)->tv_sec++; \
(tsp)->tv_nsec -= 1000000000; \
}
Definition at line 139 of file time.h.
◆ timespecsub
#define timespecsub |
( |
|
tsp1, |
|
|
|
tsp2 |
|
) |
| |
Value: do { \
(tsp1)->tv_sec -= (tsp2)->tv_sec; \
(tsp1)->tv_nsec -= (tsp2)->tv_nsec; \
} while (0)
Definition at line 147 of file time.h.