From cc6087f452c55ffb1396f1b172d3f6c501b1f5d4 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Tue, 15 Nov 2016 16:31:16 -0800 Subject: fixup! Remove all boost:: namespace prefix for uint32_t, int32_t etc. (fixed-width types) Now also removes the namespaces in examples/ --- host/examples/test_clock_synch.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'host/examples/test_clock_synch.cpp') diff --git a/host/examples/test_clock_synch.cpp b/host/examples/test_clock_synch.cpp index 2d438c5ca..8774c0c00 100644 --- a/host/examples/test_clock_synch.cpp +++ b/host/examples/test_clock_synch.cpp @@ -64,7 +64,7 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){ //Variables to be set by command line options std::string clock_args, usrp_args; - boost::uint32_t max_interval, num_tests; + uint32_t max_interval, num_tests; //Set up program options po::options_description desc("Allowed options"); @@ -72,8 +72,8 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){ ("help", "Display this help message") ("clock-args", po::value(&clock_args), "Clock device arguments") ("usrp-args", po::value(&usrp_args), "USRP device arguments") - ("max-interval", po::value(&max_interval)->default_value(10000), "Maximum interval between comparisons (in ms)") - ("num-tests", po::value(&num_tests)->default_value(10), "Number of times to compare device times") + ("max-interval", po::value(&max_interval)->default_value(10000), "Maximum interval between comparisons (in ms)") + ("num-tests", po::value(&num_tests)->default_value(10), "Number of times to compare device times") ; po::variables_map vm; po::store(po::parse_command_line(argc, argv, desc), vm); @@ -133,10 +133,10 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){ srand((unsigned int)time(NULL)); std::cout << boost::format("\nRunning %d comparisons at random intervals.") % num_tests << std::endl << std::endl; - boost::uint32_t num_matches = 0; + uint32_t num_matches = 0; for(size_t i = 0; i < num_tests; i++){ //Wait random time before querying - boost::uint16_t wait_time = rand() % max_interval; + uint16_t wait_time = rand() % max_interval; boost::this_thread::sleep(boost::posix_time::milliseconds(wait_time)); //Get all times before output -- cgit v1.2.3