Verified Commit 9060a358 authored by Justin Carpentier's avatar Justin Carpentier
Browse files

python: fix bindings

parent 437ee734
...@@ -81,14 +81,13 @@ void exposeCollisionAPI () ...@@ -81,14 +81,13 @@ void exposeCollisionAPI ()
; ;
} }
if(!eigenpy::register_symbolic_link_to_registered_type< ::boost::timer::cpu_times>()) if(!eigenpy::register_symbolic_link_to_registered_type<CPUTimes>())
{ {
typedef ::boost::timer::cpu_times Times; class_<CPUTimes>("CPUTimes",no_init)
class_<Times>("cpu_times",no_init) .def_readonly("wall",&CPUTimes::wall,"wall time in micro seconds (us)")
.def_readonly("wall",&Times::wall,"wall time in nano seconds (ns)") .def_readonly("user",&CPUTimes::user,"user time in micro seconds (us)")
.def_readonly("user",&Times::user,"user time in nano seconds (ns)") .def_readonly("system",&CPUTimes::system,"system time in micro seconds (us)")
.def_readonly("system",&Times::system,"system time in nano seconds (ns)") .def("clear",&CPUTimes::clear,arg("self"),"Reset the time values.")
.def("clear",&Times::clear,arg("self"),"Reset the time values.")
; ;
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment