mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-21 18:05:46 +00:00
X86/NativeClock: Improve performance of clock calculations on hot path.
This commit is contained in:
parent
cc3af4523f
commit
50dd9a423a
2 changed files with 71 additions and 5 deletions
|
@ -41,6 +41,13 @@ private:
|
|||
u64 last_measure{};
|
||||
u64 accumulated_ticks{};
|
||||
u64 rtsc_frequency;
|
||||
|
||||
// factors
|
||||
u64 ns_rtsc_factor{};
|
||||
u64 us_rtsc_factor{};
|
||||
u64 ms_rtsc_factor{};
|
||||
u64 clock_rtsc_factor{};
|
||||
u64 cpu_rtsc_factor{};
|
||||
};
|
||||
} // namespace X64
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue