speed optimization, timestamp, UTC

4 次查看(过去 30 天)
Martin
Martin 2021-6-14
Just curious (because I could use it). Is there any way to improve the speed of this line
timestamp = num2str(posixtime(datetime('now', 'TimeZone', 'UTC'))*1000)
My average Elapsed time is something like 0.004255 seconds. Ranging from 0.001-0.01. Improvements would be nice...

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Dates and Time 的更多信息

产品


版本

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by