#include <mach/thread_act.h>
#include <mach/vm_map.h>
+namespace folly {
+namespace portability {
+namespace time {
+
static std::chrono::nanoseconds time_value_to_ns(time_value_t t) {
return std::chrono::seconds(t.seconds) +
std::chrono::microseconds(t.microseconds);
return 0;
}
+
+} // namespace time
+} // namespace portability
+} // namespace folly
#elif defined(_WIN32)
#include <errno.h>
#include <locale.h>
#include <folly/portability/Windows.h>
+namespace folly {
+namespace portability {
+namespace time {
+
using unsigned_nanos = std::chrono::duration<uint64_t, std::nano>;
static unsigned_nanos filetimeToUnsignedNanos(FILETIME ft) {
return -1;
}
}
+
+} // namespace time
+} // namespace portability
+} // namespace folly
#else
#error No clock_gettime(3) compatibility wrapper available for this platform.
#endif