WARNING: This server is unstable and will be retired in the next days. If you want to keep this forum available, please request immediately a migration on the Nabble Support forum. Forums that don't receive any migration request will be deleted forever.

 « Return to Thread: using get_time_now in python

Re: using get_time_now in python

by Josh Blum-3 :: Rate this Message:

| View in Thread


> swig/python detected a memory leak of type 'time_t *', no destructor found.
> Traceback (most recent call last):
>   File "./top_block.py", line 75, in <module>
>     tb = top_block()
>   File "./top_block.py", line 43, in __init__
>     secs = self.uhd_usrp_sink_0.get_time_now().get_full_secs().to_int()+1
> AttributeError: 'SwigPyObject' object has no attribute 'to_int'
>
>

See the API for time_spec:
http://files.ettus.com/uhd_docs/doxygen/html/classuhd_1_1time__spec__t.html

-josh

_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@...
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

 « Return to Thread: using get_time_now in python