Add Platform::Yield

This commit is contained in:
Wojtek Figat
2025-07-28 18:33:05 +02:00
parent a7ffd9e57f
commit a00ffe6ec3
12 changed files with 34 additions and 4 deletions

View File

@@ -293,6 +293,11 @@ void ApplePlatform::Sleep(int32 milliseconds)
usleep(milliseconds * 1000);
}
void ApplePlatform::Yield()
{
pthread_yield();
}
double ApplePlatform::GetTimeSeconds()
{
return SecondsPerCycle * mach_absolute_time();