mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-25 06:44:59 +00:00
HW: Add a UDL for timebase ticks to cycles conversions
This commit is contained in:
parent
389b01dae9
commit
f52aa3d041
1 changed files with 9 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue