commit | f98d87b831958cc71ef7f6b6fa18a7a2a2d24737 | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Tue Jul 17 13:21:05 2018 -0700 |
committer | Elliott Hughes <enh@google.com> | Tue Jul 17 13:21:05 2018 -0700 |
tree | 7f6aa1a75c0f51eb8b602c31d29a03ff71cdf7b1 | |
parent | 3a5fd0014c0a415b88467bb692a9606c5221d5f9 [diff] [blame] |
Add C11 timespec_get. Bug: https://github.com/android-ndk/ndk/issues/744 Test: ran tests Change-Id: Iad9514946e06d55b6a3aa0f945d9a63bff900881
diff --git a/libc/include/time.h b/libc/include/time.h index 17751d7..ea41fda 100644 --- a/libc/include/time.h +++ b/libc/include/time.h
@@ -108,6 +108,9 @@ time_t timelocal(struct tm* __tm) __INTRODUCED_IN(12); time_t timegm(struct tm* __tm) __INTRODUCED_IN(12); +#define TIME_UTC 1 +int timespec_get(struct timespec* __ts, int __base) __INTRODUCED_IN_FUTURE; + __END_DECLS #endif