X86/NativeClock: Improve performance of clock calculations on hot path.

This commit is contained in:
Fernando Sahmkow 2021-01-01 23:28:55 +01:00
parent cc3af4523f
commit 50dd9a423a
2 changed files with 71 additions and 5 deletions

View file

@ -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