From eefba16d7651d06dcdb87c5fcb4c823b06972e33 Mon Sep 17 00:00:00 2001 From: Piotr Krysik Date: Thu, 25 Oct 2018 09:33:48 +0200 Subject: python: Add missing constructors of time_spec_t Currently Python interface of time_spec_t exposes only constructor with 'double' parameter. Other constructors are also important as they provide higher precision. This change adds them to the Python API. --- host/lib/types/time_spec_python.hpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'host') diff --git a/host/lib/types/time_spec_python.hpp b/host/lib/types/time_spec_python.hpp index f411af0b0..219dd076b 100644 --- a/host/lib/types/time_spec_python.hpp +++ b/host/lib/types/time_spec_python.hpp @@ -14,6 +14,9 @@ void export_time_spec() using time_spec_t = uhd::time_spec_t; bp::class_("time_spec", bp::init()) + //Additional constructors + .def(bp::init()) + .def(bp::init()) // Methods .def("from_ticks" , &time_spec_t::from_ticks ) -- cgit v1.2.3