mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-05 13:29:57 -05:00
timeval: introduce PA_USEC_MAX
This commit is contained in:
parent
56f217f3f8
commit
f7d38965b3
1 changed files with 5 additions and 2 deletions
|
|
@ -51,12 +51,15 @@ PA_C_DECL_BEGIN
|
||||||
/** The number of nanoseconds in a microsecond */
|
/** The number of nanoseconds in a microsecond */
|
||||||
#define PA_NSEC_PER_USEC ((unsigned long long) 1000ULL)
|
#define PA_NSEC_PER_USEC ((unsigned long long) 1000ULL)
|
||||||
|
|
||||||
/** Invalid time in usec */
|
/** Invalid time in usec. \since 0.9.15 */
|
||||||
#define PA_USEC_INVALID ((pa_usec_t) -1)
|
#define PA_USEC_INVALID ((pa_usec_t) -1)
|
||||||
|
|
||||||
|
/** Biggest time in usec. \since 0.9.18 */
|
||||||
|
#define PA_USEC_MAX ((pa_usec_t) -2)
|
||||||
|
|
||||||
struct timeval;
|
struct timeval;
|
||||||
|
|
||||||
/** Return the current timestamp, just like UNIX gettimeofday() */
|
/** Return the current wallclock timestamp, just like UNIX gettimeofday(). */
|
||||||
struct timeval *pa_gettimeofday(struct timeval *tv);
|
struct timeval *pa_gettimeofday(struct timeval *tv);
|
||||||
|
|
||||||
/** Calculate the difference between the two specified timeval
|
/** Calculate the difference between the two specified timeval
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue