Mercurial > hg > Game > Cerium
view TaskManager/Fifo/rdtsc.h @ 1588:f7d35318ea76 draft
fix min_cpu() anc max_cpu()
author | Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 31 Mar 2013 22:01:12 +0900 |
parents | 411401d1cb71 |
children | 7673e2ad2623 |
line wrap: on
line source
#ifndef RDTSC_H_ #define RDTSC_H_ /* * rdtsc is Read Time Stamp Counter */ inline unsigned long long rdtsc() { unsigned long long ret = 0; #ifdef __CERIUM_FIFO__ // ?? __asm__ volatile ("rdtsc" : "=A" (ret)); #endif // __CERIUM_FIFO__ return ret; } #endif /* RDTSC_H_ */