摘要: 转自evol128 特此表示感谢http://evol128.is-programmer.com/posts/35453.html问题的出处:http://stackoverflow.com/questions/11413855/why-is-transposing-a-matrix-of-512x512-much-slower-than-transposing-a-matrix-of事情的起因是这样的,先看下面这段代码:#define SAMPLES 1000#define MATSIZE 512#include #include int mat[MATSIZE][MATSIZE];void 阅读全文
posted @ 2013-09-10 16:22 水上云天 阅读(667) 评论(0) 推荐(0) 编辑
摘要: 本文转自MoreWindows特此标识感谢http://blog.csdn.net/morewindows/article/details/6854764本文对Windows平台下常用的计时函数进行总结,包括精度为秒、毫秒、微秒三种精度的5种方法。分为在标准C/C++下的二种time()及clock(),标准C/C++所以使用的time()及clock()不仅可以用在Windows系统,也可以用于Linux系统。在Windows系统下三种,使用Windows提供的API接口timeGetTime()、GetTickCount()及QueryPerformanceCounter()来完成。文章最 阅读全文
posted @ 2013-09-10 15:37 水上云天 阅读(679) 评论(1) 推荐(0) 编辑