Elapsed Timer (print elapsed time)

Simple, useful utility for printing elapsed time and remaining time in a lengthy loop computation.
769 download
Aggiornato 5 ago 2010

Visualizza la licenza

A smarter version of the built-in functions tic and toc, made for iterative/loop computations.

Using it is just as simple:
etimer = elapsedtimer;

(then after each step)
steptimer(etimer);

After each step, prints out something like:

Elapsed time: 00:01:54 Time per step: 00:00:10 Time remaining: 00:00:25

To display time remaining, it needs to know the number of steps in the computation.
You can also set it to only print out every nth step, for example every 1000 steps.

Cita come

Matt Caywood (2025). Elapsed Timer (print elapsed time) (https://it.mathworks.com/matlabcentral/fileexchange/28247-elapsed-timer-print-elapsed-time), MATLAB Central File Exchange. Recuperato .

Compatibilità della release di MATLAB
Creato con R2009a
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS Linux
Categorie
Scopri di più su Clocks and Timers in Help Center e MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Versione Pubblicato Note della release
1.2.0.0

fixed major initialization bug

1.1.0.0

rewrote object-oriented & simplified

1.0.0.0