class

Clock(clockTypeopt)

- Class representing a Clock in ROS

Constructor

class

new Clock(clockTypeopt)

Create a Clock.
Parameters:
Name Type Attributes Default Description
clockType ClockType <optional>
Clock.ClockType.SYSTEM_TIME The type of the clock to be created.
Source:

Members

member

clockType

Get ClockType of this Clock object.
Source:

Methods

function

now() → {Time}

Return the current time.
Source:
Returns:
Return the current time.
Type Time