diff options
author | Martin Braun <martin.braun@ettus.com> | 2019-06-01 12:31:17 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2019-11-26 11:49:12 -0800 |
commit | f7cb6ee0d67afaed499cec9e8e8d0d481a65dd29 (patch) | |
tree | 20d7381f78b4f463330cb7042b36faddb95aaa60 /host/tests/system_time_test.cpp | |
parent | 4bbbedbb7ea3fd8179e7f021fd9471eddd394f35 (diff) | |
download | uhd-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.cpp | 2 |
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> |