]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
time-util: add TIMESPEC_STORE_NSEC()
authorIvan Shapovalov <intelfx@intelfx.name>
Mon, 6 Apr 2026 20:03:36 +0000 (22:03 +0200)
committerIvan Shapovalov <intelfx@intelfx.name>
Mon, 6 Apr 2026 20:53:00 +0000 (22:53 +0200)
src/basic/time-util.h

index 5b6a524c4863e25a8cc40bf261d6fd48108c0837..9a66a90859d67fc42fe72d93a55c7f4e477103bb 100644 (file)
@@ -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);