Go to the source code of this file.
Data Structures | |
struct | timeval |
struct | timespec |
struct | timezone |
struct | itimerval |
struct | clockinfo |
Defines | |
#define | TIMEVAL_TO_TIMESPEC(tv, ts) |
#define | TIMESPEC_TO_TIMEVAL(tv, ts) |
#define | timerclear(tvp) (tvp)->tv_sec = (tvp)->tv_usec = 0 |
#define | timerisset(tvp) ((tvp)->tv_sec || (tvp)->tv_usec) |
#define | timercmp(tvp, uvp, cmp) |
#define | timeradd(tvp, uvp, vvp) |
#define | timersub(tvp, uvp, vvp) |
#define | timespecclear(tsp) (tsp)->tv_sec = (tsp)->tv_nsec = 0 |
#define | timespecisset(tsp) ((tsp)->tv_sec || (tsp)->tv_nsec) |
#define | timespeccmp(tsp, usp, cmp) |
#define | timespecadd(tsp, usp, vsp) |
#define | timespecsub(tsp, usp, vsp) |
#define | ITIMER_REAL 0 |
#define | ITIMER_VIRTUAL 1 |
#define | ITIMER_PROF 2 |
#define | CLOCK_REALTIME 0 |
#define | CLOCK_VIRTUAL 1 |
#define | CLOCK_PROF 2 |
#define | CLOCK_MONOTONIC 3 |
#define | TIMER_RELTIME 0x0 |
#define | TIMER_ABSTIME 0x1 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Value: do { \ (vvp)->tv_sec = (tvp)->tv_sec + (uvp)->tv_sec; \ (vvp)->tv_usec = (tvp)->tv_usec + (uvp)->tv_usec; \ if ((vvp)->tv_usec >= 1000000) { \ (vvp)->tv_sec++; \ (vvp)->tv_usec -= 1000000; \ } \ } while (/* CONSTCOND */ 0) |
|
|
|
Value: |
|
|
|
Value: do { \ (vvp)->tv_sec = (tvp)->tv_sec - (uvp)->tv_sec; \ (vvp)->tv_usec = (tvp)->tv_usec - (uvp)->tv_usec; \ if ((vvp)->tv_usec < 0) { \ (vvp)->tv_sec--; \ (vvp)->tv_usec += 1000000; \ } \ } while (/* CONSTCOND */ 0) |
|
Value: { \ (tv)->tv_sec = (ts)->tv_sec; \ (tv)->tv_usec = (ts)->tv_nsec / 1000; \ } |
|
Value: |
|
|
|
Value: |
|
|
|
Value: do { \ (vsp)->tv_sec = (tsp)->tv_sec - (usp)->tv_sec; \ (vsp)->tv_nsec = (tsp)->tv_nsec - (usp)->tv_nsec; \ if ((vsp)->tv_nsec < 0) { \ (vsp)->tv_sec--; \ (vsp)->tv_nsec += 1000000000L; \ } \ } while (/* CONSTCOND */ 0) |
|
Value: { \ (ts)->tv_sec = (tv)->tv_sec; \ (ts)->tv_nsec = (tv)->tv_usec * 1000; \ } |