summaryrefslogtreecommitdiffstats
path: root/libcxx/test/support/filesystem_test_helper.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'libcxx/test/support/filesystem_test_helper.hpp')
-rw-r--r--libcxx/test/support/filesystem_test_helper.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libcxx/test/support/filesystem_test_helper.hpp b/libcxx/test/support/filesystem_test_helper.hpp
index 8dcf53aee75..fdab4d6153f 100644
--- a/libcxx/test/support/filesystem_test_helper.hpp
+++ b/libcxx/test/support/filesystem_test_helper.hpp
@@ -388,9 +388,9 @@ inline std::error_code GetTestEC() {
// available in single-threaded mode.
void SleepFor(std::chrono::seconds dur) {
using namespace std::chrono;
- const auto curr_time = system_clock::now();
+ const auto curr_time = steady_clock::now();
auto wake_time = curr_time + dur;
- while (system_clock::now() < wake_time)
+ while (steady_clock::now() < wake_time)
;
}
OpenPOWER on IntegriCloud