Matlab stop time or running time

12 visualizaciones (últimos 30 días)
tevzia
tevzia el 30 de Nov. de 2013
Respondida: per isakson el 30 de Nov. de 2013
Hi, I am running a model that takes hours and i am wondering how long does it take for further run. I can see start time on command history but is there anywhere or any code that shows when program ended running. or how could i add a code that shows total time of execution?

Respuestas (2)

Jeremy Wurbs
Jeremy Wurbs el 30 de Nov. de 2013
You can use the tic and toc commands:
tic
pause(1.5) % put your code here
time = toc

per isakson
per isakson el 30 de Nov. de 2013

Categorías

Más información sobre Performance and Memory en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by