| 30 | static ui64 ManuallySetCyclesPerSecond = 0; |
| 31 | |
| 32 | static ui64 GetCyclesPerSecond() { |
| 33 | if (ManuallySetCyclesPerSecond != 0) { |
| 34 | return ManuallySetCyclesPerSecond; |
| 35 | } else { |
| 36 | return NHPTimer::GetCyclesPerSecond(); |
| 37 | } |
| 38 | } |
| 39 | |
| 40 | void SetCyclesPerSecond(ui64 cycles) { |
| 41 | ManuallySetCyclesPerSecond = cycles; |
no outgoing calls
no test coverage detected