博客首页 注册 建议与交流 排行榜 加入友情链接
推荐 投诉 搜索: 帮助

CalmArrow

【打好基础】全力以赴,顺其自然【每天进步一点点】
  piaoxiang.cublog.cn

关于作者
姓名:CalmArrow(lqm)
职业:硕士在读
位置:山东济南
研究:嵌入式系统设计
联系:calmarrow@gmail.com

信仰:
    1、永远保持积极向上(积极的心态,积极的思考,积极的行动),享受生活给予的一切!
    2、做正确的事,正确的做事;用心去做,做到最好!
    3、如果你觉得不幸福,那么请你把幸福的门槛降低一些,不要把幸福拒之门外。。。

目标:
    软硬结合,打好基础,提高学习能力,完善知识体系,建立核心优势。

方法:
    理论与实践相结合
    深度与广度相结合
    理解与记忆相结合

说明:
    本Blog仅供学习之用,转载文章如涉及版权,请通知。原创作品如转载,请注明出处。
|| << >> ||
我的分类


Matlab测量时间的方法
方法1: cputime
 

>> help cputime
 CPUTIME CPU time in seconds.
    CPUTIME returns the CPU time in seconds that has been used
    by the MATLAB process since MATLAB started.
 
    For example:
 
        t=cputime; your_operation; cputime-t
 
    returns the cpu time used to run your_operation.
  
    The return value may overflow the internal representation
    and wrap around.

 
方法2: tic and toc
 

>> help tic
 TIC Start a stopwatch timer.
    TIC and TOC functions work together to measure elapsed time.
    TIC saves the current time that TOC uses later to measure
    the elapsed time. The sequence of commands:
    
              TIC
              operations
              TOC
 
    measures the amount of time MATLAB takes to complete the one
    or more operations specifed here by "operations" and displays
    the time in seconds.

 
    两种方法各有适用范围,应根据需求而定。

发表于: 2008-05-09,修改于: 2008-05-09 09:18,已浏览455次,有评论0条 推荐 投诉


网友评论
 发表评论