diff --git a/gr-uhd/lib/gr_uhd_usrp_sink.cc b/gr-uhd/lib/gr_uhd_usrp_sink.cc index b8b99a4..0e2319d 100644 --- a/gr-uhd/lib/gr_uhd_usrp_sink.cc +++ b/gr-uhd/lib/gr_uhd_usrp_sink.cc @@ -22,6 +22,7 @@ #include #include #include +#include /*********************************************************************** * UHD Multi USRP Sink @@ -170,15 +171,18 @@ public: gr_vector_const_void_star &input_items, gr_vector_void_star &output_items ){ + std::cout << "gr_uhd_usrp_sink::work() " << noutput_items << std::endl; //send a mid-burst packet with time spec _metadata.start_of_burst = false; _metadata.end_of_burst = false; _metadata.has_time_spec = _has_time_spec; + std::cout << "time before send() " << uhd::time_spec_t::get_system_time().get_real_secs() << std::endl; size_t num_sent = _dev->get_device()->send( input_items, noutput_items, _metadata, _type, uhd::device::SEND_MODE_FULL_BUFF, 1.0 ); + std::cout << "time after send() " << uhd::time_spec_t::get_system_time().get_real_secs() << std::endl; //increment the timespec by the number of samples sent _metadata.time_spec += uhd::time_spec_t(0, num_sent, _sample_rate);