From 0303f1ed558b21e40f80c388b096432b4bf6e883 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Thu, 26 Apr 2018 09:30:48 -0700 Subject: lib: Purge all references to boost::this_thread::sleep() Replace with std::this_thread::sleep_for(). --- host/examples/test_clock_synch.cpp | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'host/examples/test_clock_synch.cpp') diff --git a/host/examples/test_clock_synch.cpp b/host/examples/test_clock_synch.cpp index 6f15887e8..38bc4980a 100644 --- a/host/examples/test_clock_synch.cpp +++ b/host/examples/test_clock_synch.cpp @@ -5,12 +5,6 @@ // SPDX-License-Identifier: GPL-3.0-or-later // -#include - -#include -#include -#include - #include #include #include @@ -19,6 +13,13 @@ #include #include +#include +#include + +#include +#include +#include + namespace po = boost::program_options; using namespace uhd::usrp_clock; @@ -102,7 +103,7 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){ for(size_t i = 0; i < num_tests; i++){ //Wait random time before querying uint16_t wait_time = rand() % max_interval; - boost::this_thread::sleep(boost::posix_time::milliseconds(wait_time)); + std::this_thread::sleep_for(std::chrono::milliseconds(wait_time)); //Get all times before output std::vector usrp_times(usrp->get_num_mboards()); -- cgit v1.2.3