From 6de009cc792966595d18737ed9d3658734fc801e Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Tue, 20 Aug 2013 19:19:49 -0700 Subject: uhd: benchmark use builtin samp calculation --- host/examples/benchmark_rate.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'host/examples') diff --git a/host/examples/benchmark_rate.cpp b/host/examples/benchmark_rate.cpp index 66424c85d..02e5ef60a 100644 --- a/host/examples/benchmark_rate.cpp +++ b/host/examples/benchmark_rate.cpp @@ -26,8 +26,6 @@ #include #include -#define myllround(x) ((long long)((x) + 0.5)) - namespace po = boost::program_options; /*********************************************************************** @@ -74,7 +72,7 @@ void benchmark_rx_rate(uhd::usrp::multi_usrp::sptr usrp, const std::string &rx_c case uhd::rx_metadata_t::ERROR_CODE_NONE: if (had_an_overflow){ had_an_overflow = false; - num_dropped_samps += myllround((md.time_spec - last_time).get_real_secs()*rate); + num_dropped_samps += (md.time_spec - last_time).to_ticks(rate); } break; -- cgit v1.2.3