HW: Add a UDL for timebase ticks to cycles conversions

This commit is contained in:
Léo Lam 2021-02-13 18:24:23 +01:00
parent 389b01dae9
commit f52aa3d041
No known key found for this signature in database
GPG Key ID: 0DF30F9081000741
1 changed files with 9 additions and 0 deletions

View File

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