summaryrefslogtreecommitdiffstats
path: root/source/base/base_profile_arm.h
blob: e63b6a9afc686bb501c18ccc165d48016d2a0ec6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
#ifndef BASE_PROFILE_ARM_H
#define BASE_PROFILE_ARM_H

// NOTE: the arm generic timer: cntvct_el0 ticks at cntfrq_el0 hz (24 MHz on apple silicon, often
// 19.2 / 25 / 54 MHz elsewhere), readable from user space on linux, macos and windows.

internal inline u64 ReadCPUTimer(void);
internal inline u64 ReadCPUTimerFreq(void);

#endif