Lines Matching refs:timeval
30 * Utility functions for handling timeval calculations */
58 struct timeval;
61 struct timeval *pa_gettimeofday(struct timeval *tv);
63 /** Calculate the difference between the two specified timeval
65 pa_usec_t pa_timeval_diff(const struct timeval *a, const struct timeval *b) PA_GCC_PURE;
67 /** Compare the two timeval structs and return 0 when equal, negative when a < b, positive otherwise */
68 int pa_timeval_cmp(const struct timeval *a, const struct timeval *b) PA_GCC_PURE;
71 pa_usec_t pa_timeval_age(const struct timeval *tv);
73 /** Add the specified time in microseconds to the specified timeval structure */
74 struct timeval* pa_timeval_add(struct timeval *tv, pa_usec_t v);
76 /** Subtract the specified time in microseconds to the specified timeval structure. \since 0.9.11 */
77 struct timeval* pa_timeval_sub(struct timeval *tv, pa_usec_t v);
79 /** Store the specified usec value in the timeval struct. \since 0.9.7 */
80 struct timeval* pa_timeval_store(struct timeval *tv, pa_usec_t v);
83 pa_usec_t pa_timeval_load(const struct timeval *tv);