ROSS
build
bin
include
clock
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
6
typedef
uint64_t
tw_clock
;
7
8
static
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
tw_clock_read
static tw_clock tw_clock_read(void)
Definition
aarch64.h:8
tw_clock
uint64_t tw_clock
Definition
aarch64.h:6
Generated by
1.14.0