rosrust::wall_time

Function now

Source
pub fn now() -> Time
Expand description

Get the current time from the system clock.

This is esentially the same as:

std::time::SystemTime::now().into()

ยงExamples

message.header.stamp = rosrust::wall_time::now();