Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: openbts/trunk/Transceiver52M/UHDDevice.cpp
- ===================================================================
- --- openbts/trunk/Transceiver52M/UHDDevice.cpp (revision 3400)
- +++ openbts/trunk/Transceiver52M/UHDDevice.cpp (working copy)
- @@ -65,14 +65,12 @@
- */
- uhd::time_spec_t convert_time(TIMESTAMP ticks, double rate)
- {
- - double secs = (double) ticks / rate;
- - return uhd::time_spec_t(secs);
- + return uhd::time_spec_t::from_ticks(ticks, rate);
- }
- TIMESTAMP convert_time(uhd::time_spec_t ts, double rate)
- {
- - TIMESTAMP ticks = ts.get_full_secs() * rate;
- - return ts.get_tick_count(rate) + ticks;
- + return ts.to_ticks(rate);
- }
- /*
Add Comment
Please, Sign In to add comment