aboutsummaryrefslogtreecommitdiffstats
path: root/host/examples/test_clock_synch.cpp
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2016-11-15 16:32:04 -0800
committerMartin Braun <martin.braun@ettus.com>2016-11-15 16:32:04 -0800
commit37a73f58c526cad07fce3d0ccdf3863b93fe8b80 (patch)
tree1d7ceff3e9f86e2c452281b4deeceb0896e18609 /host/examples/test_clock_synch.cpp
parentdc951f511043d828a7ebc00a2af151ce2e9af4fc (diff)
parentcc6087f452c55ffb1396f1b172d3f6c501b1f5d4 (diff)
downloaduhd-37a73f58c526cad07fce3d0ccdf3863b93fe8b80.tar.gz
uhd-37a73f58c526cad07fce3d0ccdf3863b93fe8b80.tar.bz2
uhd-37a73f58c526cad07fce3d0ccdf3863b93fe8b80.zip
Merge branch 'maint'
Diffstat (limited to 'host/examples/test_clock_synch.cpp')
-rw-r--r--host/examples/test_clock_synch.cpp10
1 files changed, 5 insertions, 5 deletions
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<std::string>(&clock_args), "Clock device arguments")
("usrp-args", po::value<std::string>(&usrp_args), "USRP device arguments")
- ("max-interval", po::value<boost::uint32_t>(&max_interval)->default_value(10000), "Maximum interval between comparisons (in ms)")
- ("num-tests", po::value<boost::uint32_t>(&num_tests)->default_value(10), "Number of times to compare device times")
+ ("max-interval", po::value<uint32_t>(&max_interval)->default_value(10000), "Maximum interval between comparisons (in ms)")
+ ("num-tests", po::value<uint32_t>(&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