diff options
Diffstat (limited to 'host/utils/query_gpsdo_sensors.cpp')
-rw-r--r-- | host/utils/query_gpsdo_sensors.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/host/utils/query_gpsdo_sensors.cpp b/host/utils/query_gpsdo_sensors.cpp index 525c20482..d909f83a9 100644 --- a/host/utils/query_gpsdo_sensors.cpp +++ b/host/utils/query_gpsdo_sensors.cpp @@ -15,13 +15,13 @@ #include <boost/format.hpp> #include <iostream> #include <complex> -#include <boost/thread.hpp> #include <string> #include <cmath> #include <ctime> #include <cstdlib> #include <chrono> #include <thread> + namespace po = boost::program_options; namespace fs = boost::filesystem; @@ -130,7 +130,7 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){ if(std::find(sensor_names.begin(), sensor_names.end(), "ref_locked") != sensor_names.end()) { uhd::sensor_value_t ref_locked = usrp->get_mboard_sensor("ref_locked",0); for (size_t i = 0; not ref_locked.to_bool() and i < 100; i++) { - boost::this_thread::sleep(boost::posix_time::milliseconds(100)); + std::this_thread::sleep_for(std::chrono::milliseconds(100)); ref_locked = usrp->get_mboard_sensor("ref_locked",0); } if(not ref_locked.to_bool()) { @@ -210,7 +210,7 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){ //second and set the device time at the next PPS edge usrp->set_time_next_pps(uhd::time_spec_t(gps_time.to_int() + 1.0)); //allow some time to make sure the PPS has come… - boost::this_thread::sleep(boost::posix_time::milliseconds(1100)); + std::this_thread::sleep_for(std::chrono::milliseconds(1100)); //…then ask gps_seconds = usrp->get_mboard_sensor("gps_time").to_int(); pps_seconds = usrp->get_time_last_pps().to_ticks(1.0); |