how to find time elapsed to execute the part of a program

조회 수: 1 (최근 30일)
MANJUNATH
MANJUNATH 2012년 10월 29일
i have written the code to acquire data from a data acquisition card , i want know the time taken at each stages to acquire data from one pixel. Eg.- time taken to initialize the channel - time taken to address the channel -time take to read the pixel, -time taken to display the image and i am using USB DAQ, sotime taken by an USB cable for transmission
Note:i tried using tic , toc and could not get proper elapsed time.
If any one have any idea regarding this , please help me

채택된 답변

Sachin Ganjare
Sachin Ganjare 2012년 10월 29일
Try cputime function instead.
Also tic & toc will provide correct results if no other applications are running simulataneousely on your machine.
  댓글 수: 4
Sachin Ganjare
Sachin Ganjare 2012년 10월 29일
Can you Can you elaborate more or paste code?

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Data Acquisition Toolbox Supported Hardware에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by