1
1
mirror of https://github.com/ryujinx-mirror/ryujinx.git synced 2025-01-16 12:50:04 -06:00
ryujinx/Ryujinx.Core/OsHle/Kernel/NsTimeConverter.cs

19 lines
367 B
C#

namespace Ryujinx.Core.OsHle.Kernel
{
static class NsTimeConverter
{
public static int GetTimeMs(ulong Ns)
{
ulong Ms = Ns / 1_000_000;
if (Ms < int.MaxValue)
{
return (int)Ms;
}
else
{
return int.MaxValue;
}
}
}
}