Logo Search packages:      
Sourcecode: pulseaudio version File versions

timeval.h File Reference


Detailed Description

Utility functions for handling timeval calculations

Definition in file timeval.h.

#include <pulse/cdecl.h>
#include <pulse/gccmacro.h>
#include <pulse/sample.h>

Go to the source code of this file.

Defines

#define PA_MSEC_PER_SEC   ((pa_usec_t) 1000ULL)
#define PA_NSEC_PER_MSEC   ((pa_usec_t) 1000000ULL)
#define PA_NSEC_PER_SEC   ((pa_usec_t) 1000000000ULL)
#define PA_NSEC_PER_USEC   ((pa_usec_t) 1000ULL)
#define PA_USEC_PER_MSEC   ((pa_usec_t) 1000ULL)
#define PA_USEC_PER_SEC   ((pa_usec_t) 1000000ULL)

Functions

struct timeval * pa_gettimeofday (struct timeval *tv)
struct timeval * pa_timeval_add (struct timeval *tv, pa_usec_t v)
pa_usec_t pa_timeval_age (const struct timeval *tv)
int pa_timeval_cmp (const struct timeval *a, const struct timeval *b) PA_GCC_PURE
pa_usec_t pa_timeval_diff (const struct timeval *a, const struct timeval *b) PA_GCC_PURE
pa_usec_t pa_timeval_load (const struct timeval *tv)
struct timeval * pa_timeval_store (struct timeval *tv, pa_usec_t v)
struct timeval * pa_timeval_sub (struct timeval *tv, pa_usec_t v)


Generated by  Doxygen 1.6.0   Back to index