RTC in ms resolution

Is there a way to display the system time (RTC Variables) in a higher resolution than seconds? We need this to measure time intervals in milliseconds. Since the DataLogger stores a time stamp in a resolution of 100ns, this should be possible, shouldn’t it?
We want to avoid the solution of using a cyclic task and its cycle time in a programme.

Thank you very much for your help,
Best regards

Hello,
The most common FB’s to deal with time packed into PLCnextBase librurary.
изображение.pngThere are blocks for precision time measurement and for common time tasks.
Can be found at https://www.plcnextstore.com/world/app/2023
Best regards

Hello,
Thank you very much for your quick reply. I think that solves our problem.
However, it would be great if at least microseconds were added to the RTC variables.
Best regards

If you use the RTC_S function, it will capture hundredths of seconds…not microseconds but it is better than just seconds…

TimeLog.jpgSFW