0
0
Fork 0
mirror of https://github.com/ryujinx-mirror/ryujinx.git synced 2024-12-25 06:05:46 +00:00
ryujinx-fork/Ryujinx.HLE/OsHle/Kernel/NsTimeConverter.cs

19 lines
366 B
C#
Raw Normal View History

namespace Ryujinx.HLE.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;
}
}
}
}