typedef _PDCLIB_time_t time_t;\r
typedef _PDCLIB_clock_t clock_t;\r
\r
+#define TIME_UTC _PDCLIB_TIME_UTC\r
+\r
#ifndef _PDCLIB_STRUCT_TIMESPEC_DEFINED\r
#define _PDCLIB_STRUCT_TIMESPEC_DEFINED\r
_PDCLIB_DEFINE_STRUCT_TIMESPEC()\r
_PDCLIB_DEFINE_STRUCT_TM()\r
#endif\r
\r
-time_t time(time_t* t) _PDCLIB_nothrow;\r
+time_t time( time_t* t ) _PDCLIB_nothrow;\r
+int timespec_get( struct timespec *ts, int base ) _PDCLIB_nothrow;\r
\r
_PDCLIB_END_EXTERN_C\r
#endif\r
#define _PDCLIB_clock double
#define _PDCLIB_CLOCKS_PER_SEC 1000000
+/* <time.h>: TIME_UTC
+ *
+ * The TIME_UTC parameter is passed to the timespec_get function in order to get
+ * the system time in UTC since an implementation defined epoch (not necessarily
+ * the same as that used for time_t). That said, on POSIX the obvious
+ * implementation of timespec_get for TIME_UTC is to wrap
+ * clock_gettime(CLOCK_REALTIME, ...), which is defined as time in UTC since the
+ * same epoch.
+ *
+ * This may be any non-zero integer value.
+ */
+#define _PDCLIB_TIME_UTC 1
+
/* -------------------------------------------------------------------------- */
/* Floating Point */
/* -------------------------------------------------------------------------- */
#define _PDCLIB_clock double
#define _PDCLIB_CLOCKS_PER_SEC 1000000
+/* <time.h>: TIME_UTC
+ *
+ * The TIME_UTC parameter is passed to the timespec_get function in order to get
+ * the system time in UTC since an implementation defined epoch (not necessarily
+ * the same as that used for time_t). That said, on POSIX the obvious
+ * implementation of timespec_get for TIME_UTC is to wrap
+ * clock_gettime(CLOCK_REALTIME, ...), which is defined as time in UTC since the
+ * same epoch.
+ *
+ * This may be any non-zero integer value.
+ */
+#define _PDCLIB_TIME_UTC 1
+
/* -------------------------------------------------------------------------- */
/* Floating Point */
/* -------------------------------------------------------------------------- */