X-Git-Url: https://code.delx.au/pulseaudio/blobdiff_plain/63c1eb14d889fe052afad16dfc470802cc48bb4a..9a93157f5dc22467be952e7ff2f10c7ef00a0c76:/src/pulse/timeval.h diff --git a/src/pulse/timeval.h b/src/pulse/timeval.h index ee398296..2b3faf16 100644 --- a/src/pulse/timeval.h +++ b/src/pulse/timeval.h @@ -26,17 +26,29 @@ #include #include #include +#include /** \file * Utility functions for handling timeval calculations */ PA_C_DECL_BEGIN +/** The number of milliseconds in a second */ #define PA_MSEC_PER_SEC ((pa_usec_t) 1000ULL) + +/** The number of microseconds in a second */ #define PA_USEC_PER_SEC ((pa_usec_t) 1000000ULL) + +/** The number of nanoseconds in a second */ #define PA_NSEC_PER_SEC ((pa_usec_t) 1000000000ULL) + +/** The number of microseconds in a millisecond */ #define PA_USEC_PER_MSEC ((pa_usec_t) 1000ULL) + +/** The number of nanoseconds in a millisecond */ #define PA_NSEC_PER_MSEC ((pa_usec_t) 1000000ULL) + +/** The number of nanoseconds in a microsecond */ #define PA_NSEC_PER_USEC ((pa_usec_t) 1000ULL) struct timeval;