[ros-users] Timers in rospy?

Tim Field tfield at willowgarage.com
Thu Feb 3 01:37:16 UTC 2011

On Wed, Feb 2, 2011 at 3:41 PM, Patrick Bouffard <bouffard at eecs.berkeley.edu
> wrote:

> Also I'm wondering why you use time.time() rather than
> rospy.Time.now() in a couple places?

I used time.time() when measuring the last callback duration.  I did this to
mirror the roscpp timer implementation which specifies that this duration
"is always in wall-clock time."

I'm glad you found the code useful.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ros.org/pipermail/ros-users/attachments/20110202/6c6bb8b8/attachment-0003.html>

More information about the ros-users mailing list