例如我对一幅图像进行均值滤波,那么如何计算出处理这幅图像所要用的时间,感谢。
解决方案 »
- 请教个美工问题。
- 单文档分割窗口后,左边的TreeView RClick获取不到Hitem,希望大侠们指点 多谢了!
- 怎样在MFC中设置CListCtrl为空
- 聊天室,非阻塞socket
- 有没有懂代码签名的,帮忙解答一下
- 如何取得MRU(最近文件)中的文件名
- 向高手请教 #define DECLARE_VTBL(iname) iname vt##iname; 中## 的作用是什么??
- 需要pop3代附件的源代码!
- 如何在一个汉字、数字、英文、标点符号混合的字符串中将汉字的ASCII编码加一而其他的不变
- 如何通过VC向NETTERM窗口发送按键信息?
- 很特殊的自绘菜单方法,求原理
- 多线程ping接收到乱包的情况怎么办阿
LARGE_INTEGER tBefore, tAfter, i64PerfFrequency;
// Figure out how often the performance counter increments
QueryPerformanceFrequency( &i64PerfFrequency );// Get performance counter before the ANSI API loop
QueryPerformanceCounter( &tBefore );//run your code here
……// Get performance counter after the ANSI API loop
QueryPerformanceCounter( &tAfter );double tSecond = (double)(tAfter.QuadPart - tBefore.QuadPart)/(double)i64PerfFrequency.QuadPart;
处理图像
DWORD tt= timeGetTime() - t;
cout<<tt;
using namespace std;time_t tBegin, tEnd;tBegin = clock();
........
tEnd = clock(); double(tEnd-tBegin)/CLOCKS_PER_SEC