pulse.timeval

Undocumented in source.

Members

Functions

pa_gettimeofday
timeval* pa_gettimeofday(timeval* tv)

Return the current wallclock timestamp, just like UNIX gettimeofday().

pa_timeval_add
timeval* pa_timeval_add(timeval* tv, pa_usec_t v)

Add the specified time in microseconds to the specified timeval structure

pa_timeval_age
pa_usec_t pa_timeval_age(const(timeval)* tv)

Return the time difference between now and the specified timestamp

pa_timeval_cmp
int pa_timeval_cmp(const(timeval)* a, const(timeval)* b)

Compare the two timeval structs and return 0 when equal, negative when a < b, positive otherwise

pa_timeval_diff
pa_usec_t pa_timeval_diff(const(timeval)* a, const(timeval)* b)

Calculate the difference between the two specified timeval * structs.

pa_timeval_load
pa_usec_t pa_timeval_load(const(timeval)* tv)

Load the specified tv value and return it in usec. \since 0.9.7

pa_timeval_store
timeval* pa_timeval_store(timeval* tv, pa_usec_t v)

Store the specified usec value in the timeval struct. \since 0.9.7

pa_timeval_sub
timeval* pa_timeval_sub(timeval* tv, pa_usec_t v)

Subtract the specified time in microseconds to the specified timeval structure. \since 0.9.11

Manifest constants

PA_MSEC_PER_SEC
enum PA_MSEC_PER_SEC;

The number of milliseconds in a second

PA_NSEC_PER_MSEC
enum PA_NSEC_PER_MSEC;

The number of nanoseconds in a millisecond

PA_NSEC_PER_SEC
enum PA_NSEC_PER_SEC;

The number of nanoseconds in a second

PA_NSEC_PER_USEC
enum PA_NSEC_PER_USEC;

The number of nanoseconds in a microsecond

PA_USEC_INVALID
enum PA_USEC_INVALID;

Invalid time in usec. \since 0.9.15

PA_USEC_MAX
enum PA_USEC_MAX;

Biggest time in usec. \since 0.9.18

PA_USEC_PER_MSEC
enum PA_USEC_PER_MSEC;

The number of microseconds in a millisecond

PA_USEC_PER_SEC
enum PA_USEC_PER_SEC;

The number of microseconds in a second

Meta