speed optimization, timestamp, UTC

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 件)

カテゴリ

ヘルプ センター および File ExchangeDates and Time についてさらに検索

製品

リリース

R2020b

質問済み:

2021 年 6 月 14 日

Community Treasure Hunt

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

Start Hunting!

Translated by