diff options
author | Bruno Cardoso Lopes <bruno.cardoso@gmail.com> | 2017-01-09 19:21:48 +0000 |
---|---|---|
committer | Bruno Cardoso Lopes <bruno.cardoso@gmail.com> | 2017-01-09 19:21:48 +0000 |
commit | e54237392087f66f3487587cb71ed696b4684c8a (patch) | |
tree | f741b8205500f84642f9f522fbdcef45545a8837 /clang/lib/Frontend/InitPreprocessor.cpp | |
parent | ffd3e9d7667cc15411fbc2374cd41c8c5813b033 (diff) | |
download | llvm-e54237392087f66f3487587cb71ed696b4684c8a.zip llvm-e54237392087f66f3487587cb71ed696b4684c8a.tar.gz llvm-e54237392087f66f3487587cb71ed696b4684c8a.tar.bz2 |
[Chrono][Darwin] Make steady_clock use CLOCK_UPTIME_RAW
Use CLOCK_UPTIME_RAW in case clock_gettime is available on Darwin.
On Apple platforms only CLOCK_UPTIME_RAW or mach_absolute_time are able
to time functions in the nanosecond range. Thus, they are the only
acceptable implementations of steady_clock.
Differential Revision: https://reviews.llvm.org/D27429
rdar://problem/29449467
llvm-svn: 291466
Diffstat (limited to 'clang/lib/Frontend/InitPreprocessor.cpp')
0 files changed, 0 insertions, 0 deletions