[all-commits] [llvm/llvm-project] 57e856: [flang] Add initial implementation for CPU_TIME
Diana via All-commits
all-commits at lists.llvm.org
Mon Jun 14 00:52:15 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 57e85622bbdb2eb18cc03df2ea457019c58f6912
https://github.com/llvm/llvm-project/commit/57e85622bbdb2eb18cc03df2ea457019c58f6912
Author: Diana Picus <diana.picus at linaro.org>
Date: 2021-06-14 (Mon, 14 Jun 2021)
Changed paths:
M flang/runtime/CMakeLists.txt
A flang/runtime/time-intrinsic.cpp
M flang/unittests/RuntimeGTest/CMakeLists.txt
A flang/unittests/RuntimeGTest/Time.cpp
Log Message:
-----------
[flang] Add initial implementation for CPU_TIME
Add an implementation for CPU_TIME based on std::clock(), which should
be available on all the platforms that we support.
Also add a test that's basically just a sanity check to make sure we
return positive values and that the value returned at the start of some
amount of work is larger than the one returned after the end.
Differential Revision: https://reviews.llvm.org/D104019
More information about the All-commits
mailing list