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

// NOTE: rdtsc. invariant on every x86-64 cpu of the last ~15 years (constant rate, not the core
// clock), the rate has no architectural register so ReadCPUTimerFreq calibrates it once.

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

#endif