calculate the Coding delay

조회 수: 2 (최근 30일)
fekri saleh
fekri saleh 2012년 5월 27일
how do I calculate the Coding delay in matlab? ... for exemple I want to code un image with RLE ... how can I find the time which took for this code?

채택된 답변

Geoff
Geoff 2012년 5월 27일
Do this:
tic
doStuffThatYouWantToTime();
toc

추가 답변 (1개)

Walter Roberson
Walter Roberson 2012년 5월 27일
tic() and toc() are the best you can do. But all they tell you is how long that code took to execute, on that image, on that run, on that system, with whatever-else was going on (e.g., virus scanning, defragging).
tic() and toc() are useless in figuring out how "efficient" your code is, or what the best and worst times are for encoding images with your code. If you have been asked for some kind of theoretical number for the "coding delay" then you will not be able to get that information from MATLAB.

카테고리

Help CenterFile Exchange에서 Denoising and Compression에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by