llvm-project/libcxx/src
Saleem Abdulrasool 6e3a0cc404 chrono: implement a Windows version of system_clock::now
system_clock::now is not entirely straight forward on Windows, which
does not have a clock_gettime function.

GetSystemTimeAsFileTime gives us the value relative to the NT epoch (Jan
1 1601) rather than the Unix epoch (Jan 1 1970).  However, this function
has a low resolution (~10ms).  Newer versions of Windows provide
GetSystemTimePreciseAsFileTime which gives us a much more accurate time
(<1us).  Unfortunately, the latter is only available on Windows 8+ when
targeting desktop apps.

llvm-svn: 290803
2017-01-01 20:20:41 +00:00
..
experimental Make variant's index part of the hash value 2016-12-02 23:38:31 +00:00
include [libcxx] Add support for Fuchsia 2016-10-10 18:53:32 +00:00
support [solaris] Convert the support library to C++ to fix -std=c++11 build 2016-10-18 16:54:59 +00:00
algorithm.cpp Mark libc++ internal globals with _LIBCPP_SAFE_STATIC. 2016-09-28 22:08:13 +00:00
any.cpp [libcxx] Add std::any 2016-08-11 03:13:11 +00:00
bind.cpp Implement LWG 2488 - Make the placeholders constexpr. 2016-06-26 21:01:34 +00:00
chrono.cpp chrono: implement a Windows version of system_clock::now 2017-01-01 20:20:41 +00:00
condition_variable.cpp Fix PR30202 - notify_all_at_thread_exit seg faults if run from a raw pthread context. 2016-09-03 08:07:40 +00:00
debug.cpp Fix debug mode build w/o exceptions 2016-12-28 05:20:27 +00:00
exception.cpp Mark libc++ internal globals with _LIBCPP_SAFE_STATIC. 2016-09-28 22:08:13 +00:00
future.cpp Make it possible to build a no-exceptions variant of libcxx. 2015-11-10 11:41:22 +00:00
hash.cpp Fix typos 2014-05-15 11:27:39 +00:00
ios.cpp [libc++] Fix extern template visibility for Windows 2016-09-19 18:29:07 +00:00
iostream.cpp Make the presence of stdin and stdout optional. 2015-03-26 14:35:46 +00:00
locale.cpp [libc++] Fix support for multibyte thousands_sep and decimal_point in moneypunct_byname and numpunct_byname. 2016-12-11 00:20:59 +00:00
memory.cpp Mark libc++ internal globals with _LIBCPP_SAFE_STATIC. 2016-09-28 22:08:13 +00:00
mutex.cpp Mark libc++ internal globals with _LIBCPP_SAFE_STATIC. 2016-09-28 22:08:13 +00:00
new.cpp Don't use posix_memalign on Windows platforms 2016-12-23 20:17:23 +00:00
optional.cpp Implement N4606 optional 2016-10-12 07:46:20 +00:00
random.cpp random: include __config before building 2016-12-31 00:00:21 +00:00
regex.cpp [libcxx] Remove pragmas that were needed to suppress warnings produced 2016-01-28 06:13:36 +00:00
shared_mutex.cpp Implement N4508: shared_mutex. Reviewed as http://reviews.llvm.org/D10480 2015-06-30 14:04:14 +00:00
stdexcept.cpp [libc++] Fix modules build - Rework __refstring definition 2016-10-25 19:33:14 +00:00
string.cpp Revert r284193 - it is not correct on OS X 2016-10-14 04:21:24 +00:00
strstream.cpp Fix or suppress GCC warnings during build. 2016-08-29 20:43:38 +00:00
system_error.cpp system_error: use strerror_r only for threaded code 2016-12-31 21:24:04 +00:00
thread.cpp Add an _LIBCPP_NORETURN inline function named __throw_XXX for each exception type we define. They either construct and throw the exception, or abort() (if exceptions are disabled). Use these functions everywhere instead of assert()ing when exceptions are disabled. WARNING: This is a behavior change - but only with exceptions disabled. Reviewed as: https://reviews.llvm.org/D23855. 2016-08-25 15:09:01 +00:00
typeinfo.cpp Add an _LIBCPP_NORETURN inline function named __throw_XXX for each exception type we define. They either construct and throw the exception, or abort() (if exceptions are disabled). Use these functions everywhere instead of assert()ing when exceptions are disabled. WARNING: This is a behavior change - but only with exceptions disabled. Reviewed as: https://reviews.llvm.org/D23855. 2016-08-25 15:09:01 +00:00
utility.cpp
valarray.cpp Revert "Turn off extern templates for most uses." 2014-08-15 17:58:56 +00:00
variant.cpp Implement C++17 <variant>. Patch from Michael Park! 2016-12-02 23:00:05 +00:00