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

Marshall Clow mclow.lists at gmail.com
Wed Mar 11 10:30:47 PDT 2015


> Indeed, I added _LIBCPP_HAS_NO_MONOTONIC_CLOCK for exactly the situation @hfinkel describes: my platform doesn't have access to a monotonic clock.


Note that if you don't have a monotonic clock, none of the thread/mutex/etc stuff will compile.
The only way that @jroelofs does this is to also define _LIBCPP_HAS_NO_THREADS.

The C++ standard *requires* that an implementation have a monotonic clock.


http://reviews.llvm.org/D8253

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






More information about the cfe-commits mailing list