diff options
author | Josh Blum <josh@joshknows.com> | 2013-04-09 10:38:53 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2013-04-09 10:38:53 -0700 |
commit | 23609771a19696752747338a2c6222dbad82b4d8 (patch) | |
tree | 9888d3b204a7420bc1ce1470548ba84366276b57 /host | |
parent | 4a860d7471a55700c41671922c157d243fea6247 (diff) | |
download | uhd-23609771a19696752747338a2c6222dbad82b4d8.tar.gz uhd-23609771a19696752747338a2c6222dbad82b4d8.tar.bz2 uhd-23609771a19696752747338a2c6222dbad82b4d8.zip |
gps: added print for pc clock time to query_gpsdo
Diffstat (limited to 'host')
-rw-r--r-- | host/utils/query_gpsdo_sensors.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/host/utils/query_gpsdo_sensors.cpp b/host/utils/query_gpsdo_sensors.cpp index de6bdcd72..e93105c17 100644 --- a/host/utils/query_gpsdo_sensors.cpp +++ b/host/utils/query_gpsdo_sensors.cpp @@ -27,6 +27,7 @@ #include <boost/thread.hpp> #include <string> #include <cmath> +#include <ctime> #include <cstdlib> namespace po = boost::program_options; @@ -114,6 +115,7 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){ uhd::sensor_value_t rmc_string = usrp->get_mboard_sensor("gps_gprmc"); std::cout << boost::format("%s\n%s\n%s\n") % gga_string.to_pp_string() % rmc_string.to_pp_string() % gps_time.to_pp_string(); std::cout << boost::format("UHD Device time: %.0f seconds\n") % (last_pps_time.get_real_secs()); + std::cout << boost::format("PC Clock time: %.0f seconds\n") % time(NULL); //finished std::cout << boost::format("\nDone!\n\n"); |