diff options
author | Josh Blum <josh@joshknows.com> | 2010-06-24 18:55:08 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-06-24 18:55:08 -0700 |
commit | fadd3a44a84e061412accd35c1c97db820190df8 (patch) | |
tree | 3bae768f567858b6dc61f24cd643819c9c9c2380 /host/examples/rx_timed_samples.cpp | |
parent | e74356ec5956d10d399969851fefd4a1f308ad7c (diff) | |
download | uhd-fadd3a44a84e061412accd35c1c97db820190df8.tar.gz uhd-fadd3a44a84e061412accd35c1c97db820190df8.tar.bz2 uhd-fadd3a44a84e061412accd35c1c97db820190df8.zip |
uhd: created benchmark rx example app
Made mods to time spec to support math operators.
Diffstat (limited to 'host/examples/rx_timed_samples.cpp')
-rw-r--r-- | host/examples/rx_timed_samples.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/host/examples/rx_timed_samples.cpp b/host/examples/rx_timed_samples.cpp index 6920b34d1..adc745024 100644 --- a/host/examples/rx_timed_samples.cpp +++ b/host/examples/rx_timed_samples.cpp @@ -85,8 +85,8 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){ uhd::rx_metadata_t md; std::vector<std::complex<float> > buff(dev->get_max_recv_samps_per_packet()); size_t num_rx_samps = dev->recv( - boost::asio::buffer(buff), - md, uhd::io_type_t::COMPLEX_FLOAT32, + boost::asio::buffer(buff), md, + uhd::io_type_t::COMPLEX_FLOAT32, uhd::device::RECV_MODE_ONE_PACKET ); if (num_rx_samps == 0 and num_acc_samps > 0){ |