From 9c735dec679e1ceaead5d745fca49051a390300e Mon Sep 17 00:00:00 2001 From: Ivan Shapovalov Date: Mon, 6 Apr 2026 22:03:36 +0200 Subject: [PATCH] time-util: add TIMESPEC_STORE_NSEC() --- src/basic/time-util.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/basic/time-util.h b/src/basic/time-util.h index 5b6a524c48..9a66a90859 100644 --- a/src/basic/time-util.h +++ b/src/basic/time-util.h @@ -114,6 +114,7 @@ struct timespec* timespec_store(struct timespec *ts, usec_t u); struct timespec* timespec_store_nsec(struct timespec *ts, nsec_t n); #define TIMESPEC_STORE(u) timespec_store(&(struct timespec) {}, (u)) +#define TIMESPEC_STORE_NSEC(n) timespec_store_nsec(&(struct timespec) {}, (n)) usec_t timeval_load(const struct timeval *tv) _pure_; struct timeval* timeval_store(struct timeval *tv, usec_t u);