aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/include/uhdlib/utils/system_time.hpp
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2018-04-06 11:36:04 -0700
committerMartin Braun <martin.braun@ettus.com>2018-04-06 18:39:11 -0700
commitd4eaee390db2fefd4564b6054d8d066c437d8cff (patch)
treea549bdb025674630ccff63d699a6ba63eab4d35f /host/lib/include/uhdlib/utils/system_time.hpp
parentbf1d22ffe871c9b4293d87ff0f5abe7511dab00b (diff)
downloaduhd-d4eaee390db2fefd4564b6054d8d066c437d8cff.tar.gz
uhd-d4eaee390db2fefd4564b6054d8d066c437d8cff.tar.bz2
uhd-d4eaee390db2fefd4564b6054d8d066c437d8cff.zip
lib: move atomic.hpp and system_time.hpp to uhdlib
Diffstat (limited to 'host/lib/include/uhdlib/utils/system_time.hpp')
-rw-r--r--host/lib/include/uhdlib/utils/system_time.hpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/host/lib/include/uhdlib/utils/system_time.hpp b/host/lib/include/uhdlib/utils/system_time.hpp
new file mode 100644
index 000000000..30cd5a673
--- /dev/null
+++ b/host/lib/include/uhdlib/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 */