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 9e109849ff
commit d4f871cb6a
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