|
From: | Marcus Müller |
Subject: | Re: [Discuss-gnuradio] uint64_t to PMT in Python |
Date: | Mon, 15 Aug 2016 12:25:28 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 |
Hi Lakshay, yeah, I figured that was the case here; but you're right, get_real_secs() is suboptimal, because e.g. setting "wall clock time" will lead to large values for the "full seconds" part, and that will lead to reduced accuracy for the fractional part, if you combine the full and fractional seconds into a floating number. There's a couple of workarounds, of which I prefer the following time_now = usrp_source_0.get_time_now() frac_seconds = time_now.get_frack_secs() full_seconds = time_now.to_ticks(1.0) Best regards, On 15.08.2016 03:18, Lakshay Narula
wrote:
|
[Prev in Thread] | Current Thread | [Next in Thread] |