diff options
author | Josh Blum <josh@joshknows.com> | 2011-01-12 14:03:25 -0800 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2011-01-12 14:03:25 -0800 |
commit | 4f28afe2479856f1e0696983a206f05939b2edbf (patch) | |
tree | d73de7767ecd204c52f9facf45f21b75baf092a2 /host/examples/tx_from_file.cpp | |
parent | 0bc30138240890aef6017e57264c5adb6c7268cf (diff) | |
download | uhd-4f28afe2479856f1e0696983a206f05939b2edbf.tar.gz uhd-4f28afe2479856f1e0696983a206f05939b2edbf.tar.bz2 uhd-4f28afe2479856f1e0696983a206f05939b2edbf.zip |
uhd: use double for seconds in example apps so we can do partial seconds
Diffstat (limited to 'host/examples/tx_from_file.cpp')
-rw-r--r-- | host/examples/tx_from_file.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/host/examples/tx_from_file.cpp b/host/examples/tx_from_file.cpp index 392924c05..a84456718 100644 --- a/host/examples/tx_from_file.cpp +++ b/host/examples/tx_from_file.cpp @@ -31,7 +31,7 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){ //variables to be set by po std::string args; - time_t seconds_in_future; + double seconds_in_future; size_t total_num_samps; size_t samps_per_packet; double tx_rate, freq, gain; @@ -42,7 +42,7 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){ desc.add_options() ("help", "help message") ("args", po::value<std::string>(&args)->default_value(""), "simple uhd device address args") - ("secs", po::value<time_t>(&seconds_in_future)->default_value(3), "number of seconds in the future to transmit") + ("secs", po::value<double>(&seconds_in_future)->default_value(3), "number of seconds in the future to transmit") ("nsamps", po::value<size_t>(&total_num_samps)->default_value(1000), "total number of samples to transmit") ("txrate", po::value<double>(&tx_rate)->default_value(100e6/16), "rate of outgoing samples") ("freq", po::value<double>(&freq)->default_value(0), "rf center frequency in Hz") |