aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2023-08-24 21:31:11 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2023-08-24 21:31:54 +0000
commit9b5d724cad10087e34165199e55f15f2df744ed5 (patch)
tree29086b9ee1d31c7d1404ab222809b6db051620b6 /include
parentb8b6bef43f876a0a0b8c0b4ae65135bcab4c7aa6 (diff)
Diffstat (limited to 'include')
-rw-r--r--include/time.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/time.h b/include/time.h
index c6c083316423..ef55577a2f84 100644
--- a/include/time.h
+++ b/include/time.h
@@ -182,9 +182,15 @@ time_t posix2time(time_t t);
#if defined(__BSD_VISIBLE) || __ISO_C_VISIBLE >= 2011 || \
(defined(__cplusplus) && __cplusplus >= 201703)
#include <sys/_timespec.h>
-/* ISO/IEC 9899:201x 7.27.2.5 The timespec_get function */
+/* ISO/IEC 9899:2011 7.27.2.5 The timespec_get function */
#define TIME_UTC 1 /* time elapsed since epoch */
int timespec_get(struct timespec *ts, int base);
+#if defined (__BSD_VISIBLE) || __ISO_C_VISIBLE >= 2023
+/* ISO/IEC 9899:2024 7.29.1 Components of time */
+#define TIME_MONOTONIC 2 /* monotonic time */
+/* ISO/IEC 9899:2024 7.29.2.7 The timespec_getres function */
+int timespec_getres(struct timespec *, int);
+#endif
#endif
__END_DECLS