aboutsummaryrefslogtreecommitdiffstats
path: root/host/tests/system_time_test.cpp
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2019-06-01 12:31:17 -0700
committerMartin Braun <martin.braun@ettus.com>2019-11-26 11:49:12 -0800
commitf7cb6ee0d67afaed499cec9e8e8d0d481a65dd29 (patch)
tree20d7381f78b4f463330cb7042b36faddb95aaa60 /host/tests/system_time_test.cpp
parent4bbbedbb7ea3fd8179e7f021fd9471eddd394f35 (diff)
downloaduhd-f7cb6ee0d67afaed499cec9e8e8d0d481a65dd29.tar.gz
uhd-f7cb6ee0d67afaed499cec9e8e8d0d481a65dd29.tar.bz2
uhd-f7cb6ee0d67afaed499cec9e8e8d0d481a65dd29.zip
lib: Simplify implementation of uhd::get_system_time() to use <chrono>
uhd::get_system_time() is currently only used in USRP1 code, and it turns out that our "optimized", platform-dependent implementation still is a little slower than straight-up chrono. We therefore remove all the special cases, and replace them with a single, standard solution.
Diffstat (limited to 'host/tests/system_time_test.cpp')
-rw-r--r--host/tests/system_time_test.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/host/tests/system_time_test.cpp b/host/tests/system_time_test.cpp
index 3f4f8a814..5e39604c8 100644
--- a/host/tests/system_time_test.cpp
+++ b/host/tests/system_time_test.cpp
@@ -4,8 +4,8 @@
// SPDX-License-Identifier: GPL-3.0+
//
-#include "system_time.hpp"
#include <uhd/types/time_spec.hpp>
+#include <uhdlib/utils/system_time.hpp>
#include <boost/test/unit_test.hpp>
#include <chrono>
#include <cstdint>