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