【opencv基础】测量运行时间的函数getTickCount/getCPUTickCount/getTickFrequency
2024-09-14 17:12:14
函数的计算结果类型是double,单位是秒。
要使用更精确的计时,就需要使用getCPUTickCount(),不过现代计算机CPU的频率会随着负载而变化所以没大有必要使用该函数,可以参看函数的介绍【Also, since a modern CPU varies the CPU frequency depending on the load, the number of CPU clocks spent in some code cannot be directly converted to time units. Therefore,getTickCount is generally a preferable solution for measuring execution time.】也就是使用getTickCount就足够了。
参考
完
最新文章
- C# 中参数验证方式的演变
- [LeetCode] Kth Largest Element in an Array 数组中第k大的数字
- 我的Windows Phone 8
- 使用VS2013分析DMP文件
- Linux命令行小插曲
- (转)每天一个Linux命令(6):mv
- 获取属性名:PropertyNameHelper
- 安装好Windows 8后必做的几件事情,让你的Win8跑的更快更流畅。
- Qt创建窗体的过程
- DM365视频处理流程/DM368 NAND Flash启动揭秘
- 从SAE又回到BAE,感觉好轻松
- Unity启动事件-监听:InitializeOnLoad
- php编译错误:Cannot find OpenSSL&#39;s <;evp.h>;
- extJS4.2.0 Json数据解析,嵌套及非嵌套(二)
- 跟我一起读postgresql源码(十二)——Executor(查询执行模块之——Materialization节点(下))
- DHCP的主要知识点
- angular部署到iis出现404解决方案
- 双接口(回调)promise cb
- [SDOI2017]天才黑客[最短路、前缀优化建图]
- gcc/g++多版本切换 (ubuntu18.04)