aboutsummaryrefslogtreecommitdiff
path: root/src/core/core_timing_util.h
AgeCommit message (Collapse)Author
2023-06-07core_timing: Use CNTPCT as the guest CPU tickMorph
Previously, we were mixing the raw CPU frequency and CNTFRQ. The raw CPU frequency (1020 MHz) should've never been used as CNTPCT (whose frequency is CNTFRQ) is the only counter available.
2022-04-23general: Convert source file copyright comments over to SPDXMorph
This formats all copyright comments according to SPDX formatting guidelines. Additionally, this resolves the remaining GPLv2 only licensed files by relicensing them to GPLv2.0-or-later.
2021-02-15core: core_timing_util: Optimize core timing math.bunnei
- Avoids a lot of unnecessary 128-bit math for imperceptible accuracy.
2020-10-20Revert "core: Fix clang build"bunnei
2020-10-17core: Fix clang buildLioncash
Recent changes to the build system that made more warnings be flagged as errors caused building via clang to break. Fixes #4795
2020-08-22core_timing: Remove unused headerLioncash
2020-06-27SingleCore: Use Cycle Timing instead of Host Timing.Fernando Sahmkow
2020-06-18Common/Tests: Address FeedbackFernando Sahmkow
2020-06-18Core: Implement a Host Timer.Fernando Sahmkow
2020-02-11Core: Set all hardware emulation constants in a single file.Fernando Sahmkow
2019-06-04core/core_timing_util: Amend casing of cyclesTo* functionsLioncash
Makes the casing consistent with all of our general function naming conventions.
2019-06-04core/core_timing_util: Use std::chrono types for specifying time unitsLioncash
Makes the interface more type-safe and consistent in terms of return values.
2019-06-04core/core_timing_utils: Simplify overload setLioncash
Removes unused overloads, simplifying the overall interface, deduplicating some code.
2019-02-15Use u128 on Clock Cycles calculation.Fernando Sahmkow
2019-02-15Correct CNTPCT to use Clock Cycles instead of Cpu Cycles.Fernando Sahmkow
2019-02-12core_timing: Rename CoreTiming namespace to Core::TimingLioncash
Places all of the timing-related functionality under the existing Core namespace to keep things consistent, rather than having the timing utilities sitting in its own completely separate namespace.
2018-07-24core_timing: Split off utility functions into core_timing_utilMerryMage