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();
|
||||
|
||||
} // 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…
Reference in New Issue