aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/include
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2017-08-24 15:48:42 -0700
committerMartin Braun <martin.braun@ettus.com>2018-03-05 13:53:45 -0800
commit7fa1f6ed0726ff0f908245e43a01f50620293e8d (patch)
tree714036231990d38fc4ccd2b2913b6a4ebac2235d /host/lib/include
parent347bb79d2adef4b5bf3e3a94577ecc18c0408519 (diff)
downloaduhd-7fa1f6ed0726ff0f908245e43a01f50620293e8d.tar.gz
uhd-7fa1f6ed0726ff0f908245e43a01f50620293e8d.tar.bz2
uhd-7fa1f6ed0726ff0f908245e43a01f50620293e8d.zip
uhd: Moved get_system_time outside of public API
uhd::get_system_time() is an abstracted way of reading back a time, and is not UHD-specific. As such, there's no reason to keep it in the public part of the API where we're contractually obligated not to touch it. Instead, moving it to the internal API space.
Diffstat (limited to 'host/lib/include')
-rw-r--r--host/lib/include/uhd/utils/system_time.hpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/host/lib/include/uhd/utils/system_time.hpp b/host/lib/include/uhd/utils/system_time.hpp
new file mode 100644
index 000000000..30cd5a673
--- /dev/null
+++ b/host/lib/include/uhd/utils/system_time.hpp
@@ -0,0 +1,18 @@
+//
+// Copyright 2017 Ettus Research (National Instruments Corp.)
+//
+// SPDX-License-Identifier: GPL-3.0+
+//
+
+#include <uhd/types/time_spec.hpp>
+
+namespace uhd {
+
+ /*!
+ * Get the system time in time_spec_t format.
+ * Uses the highest precision clock available.
+ * \return the system time as a time_spec_t
+ */
+ time_spec_t get_system_time(void);
+
+}; /* namespace uhd */