mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-19 12:30:32 +00:00
23 lines
487 B
C#
23 lines
487 B
C#
using System;
|
|
using System.Threading;
|
|
|
|
using Cosmos.HAL;
|
|
|
|
using IL2CPU.API.Attribs;
|
|
|
|
namespace Cosmos.System_Plugs.System.Threading
|
|
{
|
|
[Plug(Target = typeof(Thread))]
|
|
public static class ThreadImpl
|
|
{
|
|
public static void Sleep(TimeSpan timeout)
|
|
{
|
|
Global.PIT.Wait((uint)timeout.TotalMilliseconds);
|
|
}
|
|
|
|
public static void Sleep(int millisecondsTimeout)
|
|
{
|
|
Global.PIT.Wait((uint)millisecondsTimeout);
|
|
}
|
|
}
|
|
}
|