Home | Tutorials | Wiki | Issues
Ask Your Question
1

Confusion with common::Time::SecToNano()

asked 2013-04-10 23:27:43 -0500

Boris gravatar image

As the description of the function says it converts seconds to nanoseconds, but the actual code doing the opposite. So, instead of multiplying seconds with 1e9, it multiplying it with 1e-9.

Similar applies to MilToNano() and MicToNano().

What I am missing?

edit retag flag offensive close merge delete

Comments

I see it the same way, it might be a bug

AndreiHaidu gravatar imageAndreiHaidu ( 2013-04-11 01:55:55 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2013-04-11 11:03:39 -0500

gerkey gravatar image

It's a bug, with a pending fix.

Thanks for the report.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

Stats

Asked: 2013-04-10 23:27:43 -0500

Seen: 514 times

Last updated: Apr 11 '13