aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp
diff options
context:
space:
mode:
Diffstat (limited to 'host/lib/usrp')
-rw-r--r--host/lib/usrp/gps_ctrl.cpp2
-rw-r--r--host/lib/usrp/gpsd_iface.cpp2
-rw-r--r--host/lib/usrp/usrp_c.cpp12
3 files changed, 8 insertions, 8 deletions
diff --git a/host/lib/usrp/gps_ctrl.cpp b/host/lib/usrp/gps_ctrl.cpp
index 67803bec6..717654151 100644
--- a/host/lib/usrp/gps_ctrl.cpp
+++ b/host/lib/usrp/gps_ctrl.cpp
@@ -372,7 +372,7 @@ private:
return gps_time; //keep gcc from complaining
}
- time_t get_epoch_time(void) {
+ int64_t get_epoch_time(void) {
return (get_time() - from_time_t(0)).total_seconds();
}
diff --git a/host/lib/usrp/gpsd_iface.cpp b/host/lib/usrp/gpsd_iface.cpp
index 6b47b6be5..b34132fa0 100644
--- a/host/lib/usrp/gpsd_iface.cpp
+++ b/host/lib/usrp/gpsd_iface.cpp
@@ -131,7 +131,7 @@ private: // member functions
return _gps_data.fix.mode >= MODE_2D;
}
- std::time_t _epoch_time(void)
+ int64_t _epoch_time(void)
{
boost::shared_lock<boost::shared_mutex> l(_d_mutex);
return (boost::posix_time::from_time_t(_gps_data.fix.time)
diff --git a/host/lib/usrp/usrp_c.cpp b/host/lib/usrp/usrp_c.cpp
index 1eb52d9af..94f0f4eba 100644
--- a/host/lib/usrp/usrp_c.cpp
+++ b/host/lib/usrp/usrp_c.cpp
@@ -435,7 +435,7 @@ uhd_error uhd_usrp_get_mboard_name(
uhd_error uhd_usrp_get_time_now(
uhd_usrp_handle h,
size_t mboard,
- time_t *full_secs_out,
+ int64_t *full_secs_out,
double *frac_secs_out
){
UHD_SAFE_C_SAVE_ERROR(h,
@@ -448,7 +448,7 @@ uhd_error uhd_usrp_get_time_now(
uhd_error uhd_usrp_get_time_last_pps(
uhd_usrp_handle h,
size_t mboard,
- time_t *full_secs_out,
+ int64_t *full_secs_out,
double *frac_secs_out
){
UHD_SAFE_C_SAVE_ERROR(h,
@@ -460,7 +460,7 @@ uhd_error uhd_usrp_get_time_last_pps(
uhd_error uhd_usrp_set_time_now(
uhd_usrp_handle h,
- time_t full_secs,
+ int64_t full_secs,
double frac_secs,
size_t mboard
){
@@ -472,7 +472,7 @@ uhd_error uhd_usrp_set_time_now(
uhd_error uhd_usrp_set_time_next_pps(
uhd_usrp_handle h,
- time_t full_secs,
+ int64_t full_secs,
double frac_secs,
size_t mboard
){
@@ -484,7 +484,7 @@ uhd_error uhd_usrp_set_time_next_pps(
uhd_error uhd_usrp_set_time_unknown_pps(
uhd_usrp_handle h,
- time_t full_secs,
+ int64_t full_secs,
double frac_secs
){
UHD_SAFE_C_SAVE_ERROR(h,
@@ -505,7 +505,7 @@ uhd_error uhd_usrp_get_time_synchronized(
uhd_error uhd_usrp_set_command_time(
uhd_usrp_handle h,
- time_t full_secs,
+ int64_t full_secs,
double frac_secs,
size_t mboard
){