完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
嗨,大家好,
有没有方法计算程序或程序的一部分(在两个断点之间)的执行时间?比如秒表之类的? 我希望任何人都能帮上忙! 抢劫 以上来自于百度翻译 以下为原文 Hi all, Is there a way to calculate the execution time of a routine or part of a program (between two breakpoints)? Such as a stopwatch or so? I hope anyone can help! Rob |
|
相关推荐
4个回答
|
|
一种简单的方法是使用作用域,在代码段的开始和结束时翻转PIN。
感兴趣的或者使用一个已知周期的计数器,然后在开始读取它。 在代码段停止时,减去两个读数。 或者你可以看看.LST文件和计数代码循环,冗长乏味。 问候,Dana。 以上来自于百度翻译 以下为原文 A simple way is use a scope, and flip a pin at start and end of code segment of interest. Or use a counter with a know period, and read it at start then again at stop of code segment, and subtract the two readings. Or you can look at .lst file and count code cycles, tedious. Regards, Dana. |
|
|
|
谢谢Dana,
然后我将使用范围方法。 在MPLAB(PICIDE)中有秒表可用,非常容易使用。也许是造物主的想法…? 谢谢! 抢劫 以上来自于百度翻译 以下为原文 Thanks Dana, Then I will use the scope method. In MPLAB (PIC IDE) there is a stopwatch available, very easy to use. Maybe an idea for Creator....? Thanks! Rob |
|
|
|
不太难编程一个,JUSTA计时器,一个时钟和一个中断…
鲍勃 以上来自于百度翻译 以下为原文 Not too difficult to program one, Just a timer, a clock and an interrupt... Bob |
|
|
|
|
|
|
|
只有小组成员才能发言,加入小组>>
716个成员聚集在这个小组
加入小组1901 浏览 1 评论
1652 浏览 1 评论
3405 浏览 1 评论
请问可以直接使用来自FX2LP固件的端点向主机FIFO写入数据吗?
1568 浏览 6 评论
1380 浏览 1 评论
CX3连接Camera修改分辨率之后,播放器无法播出camera的画面怎么解决?
186浏览 2评论
183浏览 2评论
使用stm32+cyw43438 wifi驱动whd,WHD驱动固件加载失败的原因?
321浏览 2评论
348浏览 1评论
62浏览 1评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-4-24 05:35 , Processed in 0.600337 second(s), Total 78, Slave 62 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号