代码说明:
计算执行一个测试函数的处理器周期数,这是一个执行算法的好的方法,因为它独立于cpu的速度
What the component do is to count the number of processor cycles used to executed a test function. This is a good way of profiling algorithms because it is independent to the speed of the processor. The component uses a Pentium instruction RDTSC that read a counter (pentium time stamp counter) containing the number of cycles executed since power up.
【立即下载】
|