Go to the source code of this file.
Functions | |
| struct timeval * | pa_gettimeofday (struct timeval *tv) |
| Return the current timestamp, just like UNIX gettimeofday(). | |
| pa_usec_t | pa_timeval_diff (const struct timeval *a, const struct timeval *b) |
| Calculate the difference between the two specified timeval structs. | |
| int | pa_timeval_cmp (const struct timeval *a, const struct timeval *b) |
| Compare the two timeval structs and return 0 when equal, negative when a < b, positive otherwse. | |
| pa_usec_t | pa_timeval_age (const struct timeval *tv) |
| Return the time difference between now and the specified timestamp. | |
| struct timeval * | pa_timeval_add (struct timeval *tv, pa_usec_t v) |
| Add the specified time inmicroseconds to the specified timeval structure. | |
| struct timeval* pa_gettimeofday | ( | struct timeval * | tv | ) | [read] |
| struct timeval* pa_timeval_add | ( | struct timeval * | tv, | |
| pa_usec_t | v | |||
| ) | [read] |
| pa_usec_t pa_timeval_age | ( | const struct timeval * | tv | ) |
Return the time difference between now and the specified timestamp.
| int pa_timeval_cmp | ( | const struct timeval * | a, | |
| const struct timeval * | b | |||
| ) |
Compare the two timeval structs and return 0 when equal, negative when a < b, positive otherwse.
| pa_usec_t pa_timeval_diff | ( | const struct timeval * | a, | |
| const struct timeval * | b | |||
| ) |
Calculate the difference between the two specified timeval structs.
1.5.4