Hello to everybody!
I have a very simple question. Is there a Matlab routine which returns the current system time showing up to milliseconds?
Thanks to everybody in here and my best regards!
Jason.

 採用された回答

Aurelien Queffurust
Aurelien Queffurust 2012 年 1 月 25 日

4 投票

Using FFF:
datestr(now,'dd-mm-yyyy HH:MM:SS FFF')

その他の回答 (3 件)

Andreas Goser
Andreas Goser 2012 年 1 月 25 日

1 投票

now

3 件のコメント

Andreas Goser
Andreas Goser 2012 年 1 月 25 日
To prove it is milliseconds:
a=datevec(now);
a(6)
ans =
48.0060
Walter Roberson
Walter Roberson 2012 年 1 月 25 日
Warning: although it is millisecond precision, it is not necessarily millisecond accuracy.
Andreas Goser
Andreas Goser 2012 年 1 月 25 日
Right you are. I myself also can write down time in nanoseconds, but it doesn't make sense.

サインインしてコメントする。

Dr. Seis
Dr. Seis 2012 年 1 月 25 日

1 投票

see also "clock"
jason beckell
jason beckell 2012 年 1 月 25 日

0 投票

Thank you all for your answers, I finally made it :) Thank you again!
Jason.

カテゴリ

Community Treasure Hunt

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

Start Hunting!

Translated by