Timestemp in Milliseconds

Hello,
I have an application in which I capture analog values at 20 Hz and transmit them via OPC UA to an InfluxDB (on an external computer) to visualize the values with Grafana.
For the temporal visualization, I want to use a timestamp generated by the PLC at the time of the analog-to-digital conversion.
How can I capture a millisecond-accurate timestamp on the AXF?
Best regards,
Fabian

Hello!
Please, take a look at PLCnext Base library https://www.plcnextstore.com/world/app/1294
DateAndTime subfolder. Function block PBCL_DateTimeGet_1 can be good candidate for initial time capture variable.
изображение.pngизображение.png
BR

Hello!</p>Please, take a look at PLCnext Base library [https://www.plcnextstore.com/world/app/1294</a></p> DateAndTime subfolder. Function block PBCL_DateTimeGet_1 can be good candidate for initial time capture variable.</p>[https://forum.plcnext-community.net/uploads/WXXN59IQ9GEJ/png.png</a></p>[https://forum.plcnext-community.net/uploads/4Y6POTIXHLVD/png.png</a></p>BR</p>

Thanks, this worked!