From 2feb7a3b8c56e5fb26579fed7b507c37ac45e5d7 Mon Sep 17 00:00:00 2001 From: michael-west Date: Thu, 4 Nov 2021 13:55:59 -0700 Subject: 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 --- host/lib/rfnoc/radio_control_impl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'host/lib/rfnoc/radio_control_impl.cpp') 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); } -- cgit v1.2.3