how to find time elapsed to execute the part of a program
1 次查看(过去 30 天)
显示 更早的评论
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
0 个评论
采纳的回答
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.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File 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!