[PATCH] Use clock_gettime()'s CLOCK_REALTIME instead of gettimeofday() where possible

Marshall Clow mclow.lists at gmail.com
Wed Mar 11 08:58:16 PDT 2015


Please include me on all libc++ code reviews.


================
Comment at: src/chrono.cpp:42
@@ -35,2 +41,3 @@
+#endif  // __APPLE__
 }
 
----------------
Apple does not provide `clock_gettime`, but It's not clear to me that this should be an "Apple vs. everyone else" test.

Are there other systems that do not provide that call?

http://reviews.llvm.org/D8253

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/






More information about the cfe-commits mailing list