On 03/07/2013 09:19 PM, john jade wrote:
boost::shared_ptr<tag_source_demo> tag_source =
time_now.get_full_secs() + 1, time_now.get_frac_secs(), //time now
- 1 second
samp_rate, idle_dur, burst_dur
to get time.
- Here TIME_NOW is mother board time or something else?
it was the time on the motherboard
- What should i do if i have to get time in nanoseconds?
The time format of the tag is just a tuple of full and fractional
But if you are taking about that time_now, that was just to get an idea
of what time the device was on. You can read this value, or set it to a
known starting point like UTC. In any case, see the
uhd/types/time_spec.hpp, you can readily convert between that and
seconds if need be.
3.Is there any option to do it in python?
Yes, tags can be created in python, I hope this is documented in the
blocks coding guide
Hope that helps!