RobotStudio event

Nano or microseconds current time using IoT Data Gateway

Hi,

I using the MQTT publisher with the IoT Data Gateway option, and I need to associate a timestamp to each message. I am currently using  {{Now}}, but there might be discrepancies between the controller time and the gateway time, which is more visible when using RobotStudio (simulation), since sometimes the simulation speed might not be real-time, particularly for computationally heavy simulations.
I'd rather use the controller time (
{{DateTime}} or {{UtcDateTime}}, however these are only second-based, the microseconds (or nanoseconds) part is always 0, which is a far too low resolution for what I need.

Any advice on how could I get the controller time with higher resolution?

Thanks and best regards,
Hugo Costelha
Tagged: