aboutsummaryrefslogtreecommitdiffstats
path: root/host/include
diff options
context:
space:
mode:
authorNick Foster <nick@nerdnetworks.org>2011-04-08 14:59:46 -0700
committerJosh Blum <josh@joshknows.com>2011-04-29 09:58:54 -0700
commita4aa89ed5d73b6afa5d2d28d8f2b6cc206baf22d (patch)
tree216703a0056e4634ef85b14a08a7386a9670e5d2 /host/include
parent4df082cb4eb6659d76dd9a38988033c82c662fa9 (diff)
downloaduhd-a4aa89ed5d73b6afa5d2d28d8f2b6cc206baf22d.tar.gz
uhd-a4aa89ed5d73b6afa5d2d28d8f2b6cc206baf22d.tar.bz2
uhd-a4aa89ed5d73b6afa5d2d28d8f2b6cc206baf22d.zip
USRP2: Added GPS time support to the sensors interface. gps_time sensor returns epoch time as time_t. Untested.
Diffstat (limited to 'host/include')
-rw-r--r--host/include/uhd/usrp/gps_ctrl.hpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/host/include/uhd/usrp/gps_ctrl.hpp b/host/include/uhd/usrp/gps_ctrl.hpp
index 21d400b3b..bd679b165 100644
--- a/host/include/uhd/usrp/gps_ctrl.hpp
+++ b/host/include/uhd/usrp/gps_ctrl.hpp
@@ -42,6 +42,12 @@ public:
* \return current GPS time and date as boost::posix_time::ptime object
*/
virtual ptime get_time(void) = 0;
+
+ /*!
+ * Get the epoch time (as time_t, which is int)
+ * \return current GPS time and date as time_t
+ */
+ virtual time_t get_epoch_time(void) = 0;
/*!
* Tell you if there's a supported GPS connected or not