diff options
author | michael-west <michael.west@ettus.com> | 2021-11-04 13:55:59 -0700 |
---|---|---|
committer | Aaron Rossetto <aaron.rossetto@ni.com> | 2021-11-17 14:04:34 -0800 |
commit | 2feb7a3b8c56e5fb26579fed7b507c37ac45e5d7 (patch) | |
tree | 1ea7ca1eb9db2f5c1f26abb4b9e42a2b86da0621 /host/lib/rfnoc | |
parent | 9b78da222fb5e51c1ad9ccd6887d1cf85c4c7926 (diff) | |
download | uhd-2feb7a3b8c56e5fb26579fed7b507c37ac45e5d7.tar.gz uhd-2feb7a3b8c56e5fb26579fed7b507c37ac45e5d7.tar.bz2 uhd-2feb7a3b8c56e5fb26579fed7b507c37ac45e5d7.zip |
multi_usrp_rfnoc: Reduce latency of get_time_now()
Getting the time from the mb_controller is slow, so try to get the time
from the Radio on the fast path first.
Signed-off-by: michael-west <michael.west@ettus.com>
Diffstat (limited to 'host/lib/rfnoc')
-rw-r--r-- | host/lib/rfnoc/radio_control_impl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/host/lib/rfnoc/radio_control_impl.cpp b/host/lib/rfnoc/radio_control_impl.cpp index 53117176b..5bc16f7cd 100644 --- a/host/lib/rfnoc/radio_control_impl.cpp +++ b/host/lib/rfnoc/radio_control_impl.cpp @@ -302,7 +302,7 @@ uint64_t radio_control_impl::get_ticks_now() { // Time registers added in 0.1 if (_fpga_compat < 1) { - throw uhd::not_implemented_error("Radio does not support time readback"); + return get_mb_controller()->get_timekeeper(0)->get_ticks_now(); } return regs().peek64(regmap::REG_TIME_LO); } |