aboutsummaryrefslogtreecommitdiffstats
path: root/host/examples/rx_samples_to_udp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'host/examples/rx_samples_to_udp.cpp')
-rw-r--r--host/examples/rx_samples_to_udp.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/host/examples/rx_samples_to_udp.cpp b/host/examples/rx_samples_to_udp.cpp
index dab42d46f..dfbaab54f 100644
--- a/host/examples/rx_samples_to_udp.cpp
+++ b/host/examples/rx_samples_to_udp.cpp
@@ -13,9 +13,10 @@
#include <uhd/exception.hpp>
#include <boost/program_options.hpp>
#include <boost/format.hpp>
-#include <boost/thread.hpp>
#include <iostream>
#include <complex>
+#include <chrono>
+#include <thread>
namespace po = boost::program_options;
@@ -96,7 +97,7 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){
//set the antenna
if (vm.count("ant")) usrp->set_rx_antenna(ant);
- boost::this_thread::sleep(boost::posix_time::seconds(1)); //allow for some setup time
+ std::this_thread::sleep_for(std::chrono::seconds(1)); //allow for some setup time
//Check Ref and LO Lock detect
std::vector<std::string> sensor_names;