From 23609771a19696752747338a2c6222dbad82b4d8 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Tue, 9 Apr 2013 10:38:53 -0700 Subject: gps: added print for pc clock time to query_gpsdo --- host/utils/query_gpsdo_sensors.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'host/utils/query_gpsdo_sensors.cpp') 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 #include #include +#include #include 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"); -- cgit v1.2.3