mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-10 08:09:26 +01:00
HW: Add a UDL for timebase ticks to cycles conversions
This commit is contained in:
parent
389b01dae9
commit
f52aa3d041
@ -63,3 +63,12 @@ s64 GetLocalTimeRTCOffset();
|
|||||||
double GetEstimatedEmulationPerformance();
|
double GetEstimatedEmulationPerformance();
|
||||||
|
|
||||||
} // namespace SystemTimers
|
} // namespace SystemTimers
|
||||||
|
|
||||||
|
inline namespace SystemTimersLiterals
|
||||||
|
{
|
||||||
|
/// Converts timebase ticks to clock ticks.
|
||||||
|
constexpr u64 operator""_tbticks(unsigned long long value)
|
||||||
|
{
|
||||||
|
return value * SystemTimers::TIMER_RATIO;
|
||||||
|
}
|
||||||
|
} // namespace SystemTimersLiterals
|
||||||
|
Loading…
x
Reference in New Issue
Block a user