2016年6月5日

C语言计算代码执行所耗CPU时钟周期

摘要: #include "windows.h"LARGE_INTEGER _start = { 0 }, _end = { 0 }; __asm{ rdtsc mov dword ptr [_start.LowPart], eax mov dword ptr[_start.HighPart], edx } //your code here __asm{ rdtsc mov ... 阅读全文

posted @ 2016-06-05 21:53 felixr 阅读(2329) 评论(0) 推荐(0) 编辑

导航