18 #error "stdex:: non-conforming <ctime> header: no NULL"
21#if !defined(CLOCKS_PER_SEC)
22 #error "stdex:: non-conforming <ctime> header: no CLOCKS_PER_SEC"
25#if !defined(STDEX_NULL)
26 #define STDEX_NULL NULL
29#if !defined(STDEX_CLOCKS_PER_SEC)
30 #define STDEX_CLOCKS_PER_SEC CLOCKS_PER_SEC
37#define STDEX_TIME_UTC TIME_UTC
45#ifndef STDEX_DO_NOT_ADD_CPP17_STD
58 namespace ctime_detail
69 _dummy_2int timespec_get(...);
72 namespace ctime_std_dummy
74 using namespace std_dummy;
78 static const bool value =
79 sizeof(timespec_get(0, 0)) !=
sizeof(_dummy_2int);
83 using ctime_std_dummy::_has_timespec;
89 typedef ::timespec timespec;
93 struct _timespec_impl<false>
104 detail::_timespec_impl<
105 detail::ctime_detail::_has_timespec::value>::timespec
113 namespace ctime_cpp17
115 int timespec_get(stdex::timespec* ts,
int base);
118 using ctime_cpp17::timespec_get;
126 using std::localtime;