Go to file
Pavel Labath 13b6a10e7b Add Chrono.h - std::chrono support header
Summary:
std::chrono mostly covers the functionality of llvm::sys::TimeValue and
lldb_private::TimeValue. This header adds a bit of utility functions and
typedefs, which make the usage of the library and porting code from TimeValues
easier.

Rationale:
- TimePoint typedef - precision of system_clock is implementation defined -
  using a well-defined precision helps maintain consistency between platforms,
  makes it interact better with existing TimeValue classes, and avoids cases
  there a time point is implicitly convertible to a specific precision on some
  platforms but not on others.
- system_clock::to_time_t only accepts time_points with the default system
  precision (even though time_t has only second precision on all platforms we
  support). To avoid the need for explicit casts, I have added a toTimeT()
  wrapper function. toTimePoint(time_t) was not strictly necessary, but I have
  added it for symmetry.

Reviewers: zturner, mehdi_amini

Subscribers: beanz, mgorny, llvm-commits, modocache

Differential Revision: https://reviews.llvm.org/D25416

llvm-svn: 284590
2016-10-19 13:58:55 +00:00
clang Don't copy replacements in for-range loop. NFC. 2016-10-19 13:50:17 +00:00
clang-tools-extra Don't copy replacements in for-range loop. NFC. 2016-10-19 13:50:17 +00:00
compiler-rt [asan] Update test for D25715 2016-10-18 23:30:07 +00:00
debuginfo-tests New round of fixes for "Always compile debuginfo-tests for the host triple" 2014-10-18 23:47:59 +00:00
libclc Provide vstore_half helper to workaround clc restrictions 2016-09-21 20:15:55 +00:00
libcxx [cmake] Allow testing against installed LLVM with no sources 2016-10-19 12:34:17 +00:00
libcxxabi Fix typo in comment 2016-10-15 00:02:20 +00:00
libunwind [libunwind] Add missing <stdint.h> include. NFC. 2016-10-13 14:32:24 +00:00
lld [ELF] Add "error" and "warning" prefixes to linker messages 2016-10-19 09:35:19 +00:00
lldb [cmake] Use LLVM_CMAKE_PATH for GetSVN script 2016-10-19 12:54:28 +00:00
llgo [llgo] add llgo source path to LLVM_GO_PACKAGES 2016-07-27 03:01:00 +00:00
llvm Add Chrono.h - std::chrono support header 2016-10-19 13:58:55 +00:00
openmp Fix OpenMP 4.0 library build 2016-10-18 17:39:06 +00:00
parallel-libs [SE] Change CoreTests target name 2016-09-27 15:32:52 +00:00
polly [test] Fix buildbot after SCEV change. 2016-10-18 22:58:09 +00:00