System time Matlab

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.

 Respuesta aceptada

Aurelien Queffurust
Aurelien Queffurust el 25 de En. de 2012

4 votos

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

Más respuestas (3)

Andreas Goser
Andreas Goser el 25 de En. de 2012

1 voto

now

3 comentarios

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

Iniciar sesión para comentar.

jason beckell
jason beckell el 25 de En. de 2012

0 votos

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

Categorías

Más información sobre Performance and Memory en Centro de ayuda y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by