Returns seconds of a time or duration
seconds function to get the total seconds of a
Time object from its
time = rostime(1,860000000)
time = ROS Time with properties: Sec: 1 Nsec: 860000000
Get the total seconds from the time object.
secs = seconds(time)
secs = 1.8600
time— Current ROS or system time
ROS or system time, specified as a
Time object handle. Create a
Time object using
secs— Total time
Total time of the
returned as a scalar in seconds.