Realtime in Webots Controller

Hi,

I was wondering if we could add a current time to the messages that the Webots Robocup controller sends to us. We currently receive simulation time, but we’d like to be able calculate the latency of the connection and the real time factor.

I’m thinking that current time could probably be either std::time_t(nullptr); or std::chrono::system_clock::now();, when the message is sent. Protobuf also has google::protobuf::util::TimeUtil::GetCurrentTime()