llvm-capstone/libcxx
Ed Schouten 4f0f708bf1 Use clock_gettime()'s CLOCK_REALTIME instead of gettimeofday().
The system_clock::now() function currently uses gettimeofday(). The
problem with gettimeofday() is that it is an obsolete XSI function,
hence unavailable on CloudABI. See:

http://pubs.opengroup.org/onlinepubs/9699919799/functions/gettimeofday.html

Change this code to use clock_gettime() with CLOCK_REALTIME instead,
which is more consistent, as clock_gettime() is already used for
steady_clock.

A previous version of this change actually attempted to change
system_clock::duration, but I reverted this part as it breaks the
existing ABI.

Differential Revision:	http://reviews.llvm.org/D8253
Approved by:	jroelofs

llvm-svn: 237390
2015-05-14 20:54:18 +00:00
..
cmake [libcxx] Add code coverage configuration to CMake and LIT. 2015-03-31 04:15:45 +00:00
include Implement std::experimental::sample. 2015-05-13 16:55:41 +00:00
lib [libcxx] Add code coverage configuration to CMake and LIT. 2015-03-31 04:15:45 +00:00
src Use clock_gettime()'s CLOCK_REALTIME instead of gettimeofday(). 2015-05-14 20:54:18 +00:00
test Implement std::experimental::sample. 2015-05-13 16:55:41 +00:00
utils cleanup comments in sym_check 2015-03-27 06:04:37 +00:00
www Implement std::experimental::sample. 2015-05-13 16:55:41 +00:00
.arcconfig Update Arcanist config to point to reviews.llvm.org 2014-06-10 18:29:36 +00:00
.gitignore [libc++] Refactor test components into modules. 2015-01-09 18:03:29 +00:00
CMakeLists.txt [libcxx] Add code coverage configuration to CMake and LIT. 2015-03-31 04:15:45 +00:00
CREDITS.TXT Add self to CREDITS.txt 2015-02-26 00:48:22 +00:00
LICENSE.TXT Update copyright year to 2015. 2015-03-12 20:13:11 +00:00
Makefile Revert "Fix installheaders target's permissions" 2014-12-16 05:28:07 +00:00