int getcputick(unsigned int* low,unsigned int* high)
{
unsigned int lowtmp = 0,hightmp = 0;
assert(low != NULL);
assert(high != NULL);
__asm__ __volatile__("rdtsc" : "=a" (lowtmp),"=d"(hightmp));
*low = lowtmp;
*high = hightmp;
}
阅读(2212) | 评论(0) | 转发(0) |