ROSS
aarch64.h
Go to the documentation of this file.
1 #ifndef INC_clock_aarch64
2 #define INC_clock_aarch64
3 
4 typedef uint64_t tw_clock;
5 
6 static inline tw_clock tw_clock_read(void)
7 {
8  tw_clock result=0;
9 #ifdef ROSS_timing
10  asm volatile ("mrs %0, cntvct_el0" : "=r" (result));
11 #endif
12  return result;
13 }
14 
15 #endif
static tw_clock tw_clock_read(void)
Definition: aarch64.h:6
uint64_t tw_clock
Definition: aarch64.h:4