| 106 | } |
| 107 | |
| 108 | void Wait(long ms){ |
| 109 | assert(ms > 0); |
| 110 | |
| 111 | uint64_t ticksPerMs = (Timer::GetFrequency() / 1000); |
| 112 | uint64_t timeMs = Timer::GetSystemUptime() * 1000 + (Timer::GetTicks() * ticksPerMs); |
| 113 | |
| 114 | while((Timer::GetSystemUptime() * 1000 + (Timer::GetTicks() * ticksPerMs)) - timeMs <= static_cast<unsigned long>(ms)); |
| 115 | } |
| 116 | |
| 117 | void SleepCurrentThread(long ticks){ |
| 118 | SleepBlocker blocker = SleepBlocker(ticks); |
nothing calls this directly
no test coverage detected