2014年1月9日

rdtsc 备忘

摘要: from:http://stackoverflow.com/questions/6814792/why-is-clock-gettime-so-erraticstatic uint64_t rdtsc() {#if defined(__GNUC__)# if defined(__i386__) uint64_t x; __asm__ volatile (".byte 0x0f, 0x31" : "=A" (x)); return x;# elif defined(__x86_64__) uint32_t hi, lo; __asm__ __volatil 阅读全文

posted @ 2014-01-09 17:12 能发波 阅读(149) 评论(0) 推荐(0) 编辑

导航