aboutsummaryrefslogtreecommitdiffstats
path: root/host/examples/benchmark_rate.cpp
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2020-03-02 15:25:13 -0800
committeratrnati <54334261+atrnati@users.noreply.github.com>2020-03-03 08:51:32 -0600
commit876d4150aa3da531ddd687b48afada6e43f79146 (patch)
treefd72a71419f4cd800d4e500cfcaded4dfc8dc367 /host/examples/benchmark_rate.cpp
parent1393553d623bdf4ba40d5435c9719b6ce990d9ac (diff)
downloaduhd-876d4150aa3da531ddd687b48afada6e43f79146.tar.gz
uhd-876d4150aa3da531ddd687b48afada6e43f79146.tar.bz2
uhd-876d4150aa3da531ddd687b48afada6e43f79146.zip
uhd: Apply clang-format against all .cpp and .hpp files in host/
Note: template_lvbitx.{cpp,hpp} need to be excluded from the list of files that clang-format gets applied against.
Diffstat (limited to 'host/examples/benchmark_rate.cpp')
-rw-r--r--host/examples/benchmark_rate.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/host/examples/benchmark_rate.cpp b/host/examples/benchmark_rate.cpp
index da90c19bd..3db5b88a0 100644
--- a/host/examples/benchmark_rate.cpp
+++ b/host/examples/benchmark_rate.cpp
@@ -81,10 +81,10 @@ void benchmark_rx_rate(uhd::usrp::multi_usrp::sptr usrp,
}
// print pre-test summary
- auto time_stamp = NOW();
- auto rx_rate = usrp->get_rx_rate() / 1e6;
+ auto time_stamp = NOW();
+ auto rx_rate = usrp->get_rx_rate() / 1e6;
auto num_channels = rx_stream->get_num_channels();
- std::cout << boost::format("[%s] Testing receive rate %f Msps on %u channels\n")
+ std::cout << boost::format("[%s] Testing receive rate %f Msps on %u channels\n")
% time_stamp % rx_rate % num_channels;
// setup variables and allocate buffer
@@ -213,8 +213,8 @@ void benchmark_tx_rate(uhd::usrp::multi_usrp::sptr usrp,
}
// print pre-test summary
- auto time_stamp = NOW();
- auto tx_rate = usrp->get_tx_rate() / 1e6;
+ auto time_stamp = NOW();
+ auto tx_rate = usrp->get_tx_rate() / 1e6;
auto num_channels = tx_stream->get_num_channels();
std::cout << boost::format("[%s] Testing transmit rate %f Msps on %u channels\n")
% time_stamp % tx_rate % num_channels;
@@ -592,7 +592,7 @@ int UHD_SAFE_MAIN(int argc, char* argv[])
} else {
duration += tx_delay;
}
- const int64_t secs = int64_t(duration);
+ const int64_t secs = int64_t(duration);
const int64_t usecs = int64_t((duration - secs) * 1e6);
std::this_thread::sleep_for(
std::chrono::seconds(secs) + std::chrono::microseconds(usecs));