Elapsed Timer (print elapsed time)

バージョン 1.2.0.0 (1.71 KB) 作成者: Matt Caywood
Simple, useful utility for printing elapsed time and remaining time in a lengthy loop computation.
ダウンロード: 767
更新 2010/8/5

ライセンスの表示

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.

引用

Matt Caywood (2024). Elapsed Timer (print elapsed time) (https://www.mathworks.com/matlabcentral/fileexchange/28247-elapsed-timer-print-elapsed-time), MATLAB Central File Exchange. 取得済み .

MATLAB リリースの互換性
作成: R2009a
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
カテゴリ
Help Center および MATLAB AnswersClocks and Timers についてさらに検索

Community Treasure Hunt

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

Start Hunting!
バージョン 公開済み リリース ノート
1.2.0.0

fixed major initialization bug

1.1.0.0

rewrote object-oriented & simplified

1.0.0.0