diff options
Diffstat (limited to 'src/pulse/timeval.h')
-rw-r--r-- | src/pulse/timeval.h | 12 |
1 files changed, 12 insertions, 0 deletions
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 <pulse/cdecl.h> #include <pulse/gccmacro.h> #include <pulse/sample.h> +#include <pulse/version.h> /** \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; |