summaryrefslogtreecommitdiffstats
path: root/src/pulsecore/rtclock.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pulsecore/rtclock.c')
-rw-r--r--src/pulsecore/rtclock.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/pulsecore/rtclock.c b/src/pulsecore/rtclock.c
index 507b8999..a4e9875d 100644
--- a/src/pulsecore/rtclock.c
+++ b/src/pulsecore/rtclock.c
@@ -46,6 +46,13 @@ struct timespec *pa_timespec_store(struct timespec *a, pa_usec_t u) {
return a;
}
+struct timespec *pa_timespec_reset(struct timespec *a) {
+ pa_assert(a);
+
+ a->tv_sec = a->tv_nsec = 0;
+ return a;
+}
+
pa_usec_t pa_timespec_load(struct timespec *ts) {
pa_assert(ts);