time-util: define TIMESPEC_OMIT

Follow-up for 34c3d57474.
This commit is contained in:
Yu Watanabe
2024-05-10 10:11:06 +09:00
parent 41a94ae670
commit c876cbdd19
3 changed files with 4 additions and 2 deletions
+2
View File
@@ -75,6 +75,8 @@ typedef enum TimestampStyle {
#define DUAL_TIMESTAMP_INFINITY ((dual_timestamp) { USEC_INFINITY, USEC_INFINITY })
#define TRIPLE_TIMESTAMP_NULL ((triple_timestamp) {})
#define TIMESPEC_OMIT ((const struct timespec) { .tv_nsec = UTIME_OMIT })
usec_t now(clockid_t clock);
nsec_t now_nsec(clockid_t clock);