Class: ROS::Time
Overview
ROS Time object. This is used as msg object for time
Instance Attribute Summary
Attributes inherited from TimeValue
Class Method Summary collapse
-
.now ⇒ Object
initialize with current time.
Instance Method Summary collapse
-
#+(duration) ⇒ Time
add time value.
-
#-(other) ⇒ Duration
subtract time value.
-
#initialize(time = nil) ⇒ Time
constructor
A new instance of Time.
Methods inherited from TimeValue
#<=>, #canonicalize, #to_nsec, #to_sec
Constructor Details
Class Method Details
.now ⇒ Object
initialize with current time
71 72 73 |
# File 'lib/ros/time.rb', line 71 def self.now self.new(::Time::now) end |